From cf8b731bb92134147f9a9681d233d3054b2382b5 Mon Sep 17 00:00:00 2001 From: punix Date: Fri, 17 Nov 2023 21:26:55 +0100 Subject: [PATCH] import double fix 6 --- wire_g | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 \