diff --git a/build.sh b/build.sh index 89520a6..78dbc04 100755 --- a/build.sh +++ b/build.sh @@ -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:]]') if [[ -f ./old-tag.txt ]] ; then oldtag=$(cat ./old-tag.txt) -if [[ "${oldtag}" -eq "${newtag}" ]] ; then +if [[ "${oldtag}" == "${newtag}" ]] ; then echo "Versions match - Exiting" exit fi