From 7d6a420c5274c7c7c5098af4a18c24f6286f85b8 Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 17 Jun 2024 22:26:24 +0000 Subject: [PATCH] sane-vpn: allow `sane-vpn do -- [COMMAND]` --- pkgs/additional/sane-scripts/src/sane-vpn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/additional/sane-scripts/src/sane-vpn b/pkgs/additional/sane-scripts/src/sane-vpn index afab4265..e4d1316e 100755 --- a/pkgs/additional/sane-scripts/src/sane-vpn +++ b/pkgs/additional/sane-scripts/src/sane-vpn @@ -12,6 +12,7 @@ usageDescription() { echo "sane-vpn up [REGION]" echo "sane-vpn down [REGION]" echo "sane-vpn do [REGION [COMMAND ...] ]" + echo "sane-vpn do -- [COMMAND ...]" echo "sane-vpn dns-fix" echo "sane-vpn help" } @@ -63,7 +64,7 @@ canonicalizeRegion() { fi done - if [ -z "$region" ] || [ "$region" = "default" ]; then + if [ -z "$region" ] || [ "$region" = "default" ] || [ "$region" = "-" ] || [ "$region" = "--" ]; then debug "canonicalizing default region to '$defaultVpn'" region="$defaultVpn" fi