Fixed Bug in build script

This commit is contained in:
tke
2023-02-02 14:08:08 +01:00
parent 2385dcf07a
commit 70a3e07704

View File

@@ -3,7 +3,7 @@ cd $( dirname -- "${BASH_SOURCE[0]}" )
newtag=$(curl https://github.com/ahmedkhlief/APT-Hunter/tags.atom | grep -Pio 'link.*' | grep -Pio '(?<=href=")[^"]+' | grep tag | head -n1 | grep -Pio '(?<=tag/).*$' | tr -dc '[[:alnum:]]' | tr '[[:upper:]]' '[[:lower:]]') newtag=$(curl https://github.com/ahmedkhlief/APT-Hunter/tags.atom | grep -Pio 'link.*' | grep -Pio '(?<=href=")[^"]+' | grep tag | head -n1 | grep -Pio '(?<=tag/).*$' | tr -dc '[[:alnum:]]' | tr '[[:upper:]]' '[[:lower:]]')
if [[ -f ./old-tag.txt ]] ; then if [[ -f ./old-tag.txt ]] ; then
oldtag=$(cat ./old-tag.txt) oldtag=$(cat ./old-tag.txt)
if [[ "${oldtag}" -eq "${newtag}" ]] ; then if [[ "${oldtag}" == "${newtag}" ]] ; then
echo "Versions match - Exiting" echo "Versions match - Exiting"
exit exit
fi fi