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
|
||||
yad --window-icon=${wg_pic}wg-stop.png \
|
||||
--image=${wg_pic}wg-info.png --button "OK" \
|
||||
--text "Tunnelname existiert schon." \
|
||||
--text-align=center --title=$"Wireguard .conf Select file"
|
||||
exit 0 & more
|
||||
--title=$"Wire-G" --image-on-top --borders=8 \
|
||||
--text-align=center --buttons-layout=center \
|
||||
--text $"Tunnel name already exists."
|
||||
exit 0
|
||||
done
|
||||
active=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ .*//')
|
||||
if [[ -n $active ]]
|
||||
@ -161,13 +162,13 @@ remove(){
|
||||
--image-on-top --image=${wg_pic}wg-info.png \
|
||||
--text=$"Your tunnel $selection was successfully deleted." \
|
||||
--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
|
||||
yad --window-icon=${wg_pic}wg-trash.png \
|
||||
--image-on-top --image=${wg_pic}wg-info.png \
|
||||
--text=$"Oh something went wrong.\nPlease delete tunnel in the network manager." \
|
||||
--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
|
||||
if [ "$selection" = "$active" ]
|
||||
then
|
||||
|
Loading…
x
Reference in New Issue
Block a user