Commit 7e3990906f9f

Vincent Demeester <vincent@sbr.pm>
2023-04-15 04:00:58
scripts: redhat-vpn, quoting..
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 5809efc
Changed files (1)
nix
packages
my
scripts
nix/packages/my/scripts/bin/redhat-vpn
@@ -14,9 +14,9 @@ if ! [ "${XDG_CURRENT_DESKTOP}" == "sway" ]; then
 fi
 
 if [[ GRAPHICS -eq 0 ]]; then
-    connection=$(nmcli connection show | grep vpn | fzf)
+    connection="$(nmcli connection show | grep vpn | fzf)"
 else
-    connection=$(nmcli connection show | grep vpn | zenity --list --title "Red Hat VPNs" --text "Choose your VPN.." --column "Name" --width=600 --height=450)
+    connection="$(nmcli connection show | grep vpn | zenity --list --title "Red Hat VPNs" --text "Choose your VPN.." --column "Name" --width=600 --height=450)"
 fi
 NOTIFY_CMD="notify-send"
 if [[ GRAPHICS -eq 0 ]]; then