Commit e6cff14e1d7e

Vincent Demeester <vincent@sbr.pm>
2022-05-04 15:54:22
scripts: fix redhat-vpn
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 9f52b59
Changed files (1)
nix
packages
my
scripts
nix/packages/my/scripts/bin/redhat-vpn
@@ -39,7 +39,7 @@ else
     $NOTIFY_CMD "VPN ${name} is already connected." "You are already connected to the Red Hat VPN, let's work !"
 fi
 # Ask for kerberos password if klist returns an error (no creds)
-if [[ GRAPHICS -eq 0 ]]; then
+if ! [[ GRAPHICS -eq 0 ]]; then
     klist || {
         zenity --password --title="Kerberos password" | kinit vdemeest@REDHAT.COM
     }