Fixed Bug in build script
This commit is contained in:
2
build.sh
2
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:]]')
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user