diff --git a/wire_g b/wire_g index d35e1de..61c7ce2 100755 --- a/wire_g +++ b/wire_g @@ -92,7 +92,7 @@ import_wg(){ --timeout-indicator=bottom --skip-taskbar import_wg else - + case "$WG_CONF" in *_*.conf) if grep -i 'PEER\|PublicKey' $WG_CONF > /dev/null && grep -i 'Interface\|PrivateKey' $WG_CONF > /dev/null @@ -109,7 +109,8 @@ import_wg(){ nmcli connection import type wireguard file $WG_CONF &> ${WG_WDIR}.tmp.txt wait wg_notify - fi ;; + fi + fi ;; *) yad --image-on-top --image=${WG_PIC}wg-info.png --height=150 --width=240 \ --text-align=center --undecorated --skip-taskbar \