ohne while
This commit is contained in:
parent
e11cd65a60
commit
0e9d72be8e
5
wire_g
5
wire_g
@ -79,8 +79,6 @@ import_wg(){
|
|||||||
--window-icon=${wg_pic}wg-import.png \
|
--window-icon=${wg_pic}wg-import.png \
|
||||||
--title=$"Wireguard .conf Select file")
|
--title=$"Wireguard .conf Select file")
|
||||||
|
|
||||||
while [ ! $wgconf ]
|
|
||||||
do
|
|
||||||
case "$wgconf" in
|
case "$wgconf" in
|
||||||
|
|
||||||
*_*.conf) if grep -i 'PEER\|PublicKey' $wgconf > /dev/null && grep -i 'Interface\|PrivateKey' $wgconf > /dev/null
|
*_*.conf) if grep -i 'PEER\|PublicKey' $wgconf > /dev/null && grep -i 'Interface\|PrivateKey' $wgconf > /dev/null
|
||||||
@ -105,8 +103,7 @@ import_wg(){
|
|||||||
--text $"<b>Oh, something went wrong.</b> \n
|
--text $"<b>Oh, something went wrong.</b> \n
|
||||||
<b>No valid Wireguard file.</b> \n
|
<b>No valid Wireguard file.</b> \n
|
||||||
<b>Here is an example:</b><span color='#0fad0a'><b> my_wireguard.conf</b></span> \n" ;;
|
<b>Here is an example:</b><span color='#0fad0a'><b> my_wireguard.conf</b></span> \n" ;;
|
||||||
esac
|
esac
|
||||||
done
|
|
||||||
}
|
}
|
||||||
export -f import_wg
|
export -f import_wg
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user