CHANGLOG test a exist or not exist

This commit is contained in:
Désiré Werner Menrath 2023-11-30 12:15:41 +01:00
parent b4acba5096
commit 5381f50258
2 changed files with 23 additions and 16 deletions

View File

@ -8,14 +8,16 @@
# Use without warranty! ## # Use without warranty! ##
######################################################## ########################################################
######################################################## ########################################################
-30.11.2023-
[3.2.1]
CHANGLOG test a exist or not exist
add ping -c 1 git.lunix.dedyn.io
-------------------------------------------------------- --------------------------------------------------------
-29.11.2023- -29.11.2023-
[3.2.0] [3.2.0]
fix on start when active Tunnel removed fix on start when active Tunnel removed
new messeage window when active tunnel removed new messeage window when active tunnel removed
update translate update translate
new message on background
-------------------------------------------------------- --------------------------------------------------------
-29.11.2023- -29.11.2023-
[3.1.9] [3.1.9]

33
wire_g
View File

@ -19,7 +19,7 @@ export TEXTDOMAINDIR="/usr/share/locale"
############################################################################################################ ############################################################################################################
############################################################################################################ ############################################################################################################
VERSION=3.2.0 VERSION=3.2.1
# wg_workdir Arbeitsverzeichnis wg # wg_workdir Arbeitsverzeichnis wg
WG_WDIR="/home/$USER/.config/wg_nmcli/" WG_WDIR="/home/$USER/.config/wg_nmcli/"
# Pfad wg Icons # Pfad wg Icons
@ -326,21 +326,26 @@ fi
#Search on Updates #Search on Updates
if AUTOUPDATE=$(grep 'TRUE TRUE\|FALSE TRUE' ${WG_WDIR}about.txt) if AUTOUPDATE=$(grep 'TRUE TRUE\|FALSE TRUE' ${WG_WDIR}about.txt)
then then
rm /tmp/CHANGELOG &> /dev/null if ping -c 1 git.lunix.dedyn.io
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)
if [[ -n "$UPDATE" ]]
then then
yad --form --fixed \ if [[ ! -e /tmp/CHANGELOG ]]
--borders=8 --buttons-layout=center --text-align=center \ then
--button="OK" --undecorated \ wget https://git.lunix.dedyn.io/punix/Wire-G/raw/branch/main/wg_nmcli/CHANGELOG -P /tmp
--image-on-top --image=${WG_PIC}wg-vpn-info.png \
--separator=" " --skip-taskbar \ UPDATE=$(diff -q /home/"$USER"/.local/share/wg_nmcli/CHANGELOG /tmp/CHANGELOG)
--text=$"<span>Update for Wireg-G is available.</span> \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=$"<span>Update for Wireg-G is available.</span> \n
<a href='https://git.lunix.dedyn.io/punix/Wire-G'>Download Wire-G </a> \n" <a href='https://git.lunix.dedyn.io/punix/Wire-G'>Download Wire-G </a> \n"
fi fi
fi
fi
fi fi
#Here is start Wire-G #Here is start Wire-G
SELECTION=$(yad --no-klick --list --center \ SELECTION=$(yad --no-klick --list --center \