diff --git a/wire_g b/wire_g index a1e986f..5185c11 100755 --- a/wire_g +++ b/wire_g @@ -176,10 +176,10 @@ selection=$(yad --no-click --list \ active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//') if [ -n $active ] then - wg_stop nmcli connection up $selection &> ${wg_wdir}.tmp.txt connect else + wg_stop nmcli connection up $selection &> ${wg_wdir}.tmp.txt connect fi