From 0e9d72be8e761c4464325be8ef9488916cdd6507 Mon Sep 17 00:00:00 2001 From: punix Date: Wed, 8 Nov 2023 17:09:57 +0100 Subject: [PATCH] ohne while --- wire_g | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wire_g b/wire_g index 8af8069..5dac0f9 100755 --- a/wire_g +++ b/wire_g @@ -79,8 +79,6 @@ import_wg(){ --window-icon=${wg_pic}wg-import.png \ --title=$"Wireguard .conf Select file") - while [ ! $wgconf ] - do case "$wgconf" in *_*.conf) if grep -i 'PEER\|PublicKey' $wgconf > /dev/null && grep -i 'Interface\|PrivateKey' $wgconf > /dev/null @@ -105,8 +103,7 @@ import_wg(){ --text $"Oh, something went wrong. \n No valid Wireguard file. \n Here is an example: my_wireguard.conf \n" ;; - esac - done + esac } export -f import_wg