ohne while

This commit is contained in:
Désiré Werner Menrath 2023-11-08 17:09:57 +01:00
parent e11cd65a60
commit 0e9d72be8e

3
wire_g
View File

@ -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
@ -106,7 +104,6 @@ import_wg(){
<b>No valid Wireguard file.</b> \n
<b>Here is an example:</b><span color='#0fad0a'><b> my_wireguard.conf</b></span> \n" ;;
esac
done
}
export -f import_wg