commit e6cff14e1d7ea067afd0b501180e02865422aeeb
parent 9f52b597954fbddbfc3f8e50b3d14bdaff8266f7
Author: Vincent Demeester <vincent@sbr.pm>
Date: Wed, 4 May 2022 15:54:22 +0200
scripts: fix redhat-vpn
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nix/packages/my/scripts/bin/redhat-vpn b/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
}