exit 0 hinzugefügt und kleine korrektur
This commit is contained in:
parent
356bba4a7c
commit
19fa24d814
11
wire_g
11
wire_g
@ -95,9 +95,10 @@ import_wg(){
|
|||||||
do
|
do
|
||||||
yad --window-icon=${wg_pic}wg-stop.png \
|
yad --window-icon=${wg_pic}wg-stop.png \
|
||||||
--image=${wg_pic}wg-info.png --button "OK" \
|
--image=${wg_pic}wg-info.png --button "OK" \
|
||||||
--text "Tunnelname existiert schon." \
|
--title=$"Wire-G" --image-on-top --borders=8 \
|
||||||
--text-align=center --title=$"Wireguard .conf Select file"
|
--text-align=center --buttons-layout=center \
|
||||||
exit 0 & more
|
--text $"Tunnel name already exists."
|
||||||
|
exit 0
|
||||||
done
|
done
|
||||||
active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
|
active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
|
||||||
if [[ -n $active ]]
|
if [[ -n $active ]]
|
||||||
@ -161,13 +162,13 @@ remove(){
|
|||||||
--image-on-top --image=${wg_pic}wg-info.png \
|
--image-on-top --image=${wg_pic}wg-info.png \
|
||||||
--text=$"Your tunnel $selection was successfully deleted." \
|
--text=$"Your tunnel $selection was successfully deleted." \
|
||||||
--text-align=center --button=$"OK" --title "Wire-G Trash" \
|
--text-align=center --button=$"OK" --title "Wire-G Trash" \
|
||||||
--fixed --center --buttons-layout=center --borders=8 --center
|
--fixed --center --buttons-layout=center --borders=8
|
||||||
else
|
else
|
||||||
yad --window-icon=${wg_pic}wg-trash.png \
|
yad --window-icon=${wg_pic}wg-trash.png \
|
||||||
--image-on-top --image=${wg_pic}wg-info.png \
|
--image-on-top --image=${wg_pic}wg-info.png \
|
||||||
--text=$"Oh something went wrong.\nPlease delete tunnel in the network manager." \
|
--text=$"Oh something went wrong.\nPlease delete tunnel in the network manager." \
|
||||||
--text-align=center --button=$"OK" --title "Wire-G Trash" \
|
--text-align=center --button=$"OK" --title "Wire-G Trash" \
|
||||||
--fixed --center --buttons-layout=center --borders=8 --center
|
--fixed --center --buttons-layout=center --borders=8
|
||||||
fi
|
fi
|
||||||
if [ "$selection" = "$active" ]
|
if [ "$selection" = "$active" ]
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user