test 4 while

This commit is contained in:
Désiré Werner Menrath 2023-11-08 17:02:46 +01:00
parent 2ef17f7366
commit af7c7bb1d1

5
wire_g
View File

@ -79,7 +79,8 @@ import_wg(){
--window-icon=${wg_pic}wg-import.png \
----filename=*.conf --no-click
--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,7 +106,7 @@ 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
import_wg
done
}
export -f import_wg