diff --git a/wire_g b/wire_g
index 3034a9a..05f13b1 100755
--- a/wire_g
+++ b/wire_g
@@ -325,23 +325,21 @@ if [[ ! -d ${WG_WDIR} || ! -e ${WG_WDIR}about.txt ]]
fi
#Search on Updates
if AUTOUPDATE=$(grep 'TRUE TRUE\|FALSE TRUE' ${WG_WDIR}about.txt)
- then
- if ping -c 1 git.lunix.dedyn.io
- then
- if [[ ! -e /tmp/CHANGELOG ]]
- then
- wget https://git.lunix.dedyn.io/punix/Wire-G/raw/branch/main/wg_nmcli/CHANGELOG -P /tmp
+ then
+ if [[ ! -e /tmp/CHANGELOG ]]
+ then
+ wget https://git.lunix.dedyn.io/punix/Wire-G/raw/branch/main/wg_nmcli/CHANGELOG -P /tmp
- UPDATE=$(diff -q /home/"$USER"/.local/share/wg_nmcli/CHANGELOG /tmp/CHANGELOG)
+ UPDATE=$(diff -q /home/"$USER"/.local/share/wg_nmcli/CHANGELOG /tmp/CHANGELOG)
- if [[ -n "$UPDATE" ]]
- then
- yad --form --fixed \
- --borders=8 --buttons-layout=center --text-align=center \
- --button="OK" --undecorated \
- --image-on-top --image=${WG_PIC}wg-vpn-info.png \
- --separator=" " --skip-taskbar \
- --text=$"Update for Wireg-G is available. \n
+ if [[ -n "$UPDATE" ]]
+ then
+ yad --form --fixed \
+ --borders=8 --buttons-layout=center --text-align=center \
+ --button="OK" --undecorated \
+ --image-on-top --image=${WG_PIC}wg-vpn-info.png \
+ --separator=" " --skip-taskbar \
+ --text=$"Update for Wireg-G is available. \n
Download Wire-G \n"
fi
fi