From f875dbf66d9c5704b6d71fb221cec3c5aa1f54fd Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 28 Mar 2023 10:20:43 +0200 Subject: [PATCH] updated by /home/nico/bin/sync-all-repos on blind --- vpn.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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/