From fd1c80823eb9608523fd750626a54e42d6a9f501 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 7 Aug 2023 14:10:26 +0200 Subject: [PATCH] vpn: allow specifying endpoint --- vpn.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vpn.sh b/vpn.sh index 95674cc..19c65e6 100755 --- a/vpn.sh +++ b/vpn.sh @@ -9,7 +9,11 @@ case "$1" in pass git checkout nico-privat pass tws/nschottelius1 > /dev/null - authgroup=Europe + if [ "$2" ]; then + authgroup="$2" + else + authgroup=Europe + fi # Try to input the password directly, revert to non input if it fails pass tws/nschottelius1 | sudo openconnect --protocol=gp portal.techcorpapps.com \