diff --git a/vpn.sh b/vpn.sh index 7a1ec84..0787caf 100755 --- a/vpn.sh +++ b/vpn.sh @@ -9,7 +9,8 @@ case "$1" in 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 + # Try to input the password directly, revert to non input if it fails + pass lionfish/nschottelius1 | sudo openconnect --protocol=gp portal.techcorpapps.com --allow-insecure-crypto --user nschottelius1 --passwd-on-stdin --authgroup=Europe-1 || sudo openconnect --protocol=gp portal.techcorpapps.com --allow-insecure-crypto --user nschottelius1 --passwd-on-stdin --authgroup=Europe-1 ;; lx) cd ~/Nextcloud/luxembourg/nico/