From b1a4a0a27396075b2b6dd5d44549a404f5858832 Mon Sep 17 00:00:00 2001 From: punix Date: Thu, 9 Nov 2023 17:28:22 +0100 Subject: [PATCH] doppeltunnel 4 --- wire_g | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wire_g b/wire_g index 7bb94f1..103afeb 100755 --- a/wire_g +++ b/wire_g @@ -91,10 +91,9 @@ import_wg(){ *_*.conf) if grep -i 'PEER\|PublicKey' $wgconf > /dev/null && grep -i 'Interface\|PrivateKey' $wgconf > /dev/null then - IFS=$'\n' lines=( $(cat ${wg_wdir}.tunnel.txt) ) - for wgconf in "${lines[@]}" - do - yad --window-icon=${wg_pic}wg-stop.png \ + for wgconf in $(cat ${wg_wdir}.tunnel.txt) + do + yad --window-icon=${wg_pic}wg-stop.png \ --image=${wg_pic}wg-info.png --button "OK" \ --text "Tunnelname existiert schon." \ --text-align=center --title=$"Wireguard .conf Select file"