From 8564b09ebd1b58caa522705ea8ffb4722ca46338 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 14 Sep 2022 19:43:59 +0200 Subject: [PATCH] vpn: make it more reliable --- vpn.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vpn.sh b/vpn.sh index 4a9b242..a4e8594 100755 --- a/vpn.sh +++ b/vpn.sh @@ -5,6 +5,10 @@ set -e case "$1" in lf) + # Ensure we are on the right branch and pass has been unlocked + pass git checkout nico-privat + pass lionfish/nschottelius1 > /dev/null + pass lionfish/nschottelius1 | sudo openconnect --protocol=gp portal.techcorpapps.com --allow-insecure-crypto --user nschottelius1 --passwd-on-stdin --authgroup=Europe-1 ;; lx)