Use sudo instead of the full path

This commit is contained in:
Natsu Kagami 2022-09-11 09:41:16 -04:00
parent c96b561ea9
commit 7e50766463
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51

View file

@ -7,7 +7,7 @@ let
GASPAR_PASSWORD=$(rbw get gaspar) GASPAR_PASSWORD=$(rbw get gaspar)
GASPAR_TOKEN=$(rbw code gaspar) GASPAR_TOKEN=$(rbw code gaspar)
printf "%s\n%s" "$GASPAR_PASSWORD" "$GASPAR_TOKEN" | /usr/bin/sudo openconnect \ printf "%s\n%s" "$GASPAR_PASSWORD" "$GASPAR_TOKEN" | sudo openconnect \
--passwd-on-stdin \ --passwd-on-stdin \
-u pham \ -u pham \
"https://vpn.epfl.ch" "https://vpn.epfl.ch"