Update utils.sh

This commit is contained in:
Fioren
2023-07-11 23:08:13 +07:00
committed by GitHub
parent 0787aef62b
commit faf1ae8a1d

View File

@@ -10,6 +10,7 @@ curl -sL "https://api.github.com/repos/$repository/releases/latest" | jq -r '.as
cur_version=$(cat $2-version.txt)
if [ "$latest_version" = "$cur_version" ]; then
echo "Old patch, not build!"
rm -f ./json.txt ./$2-version.txt
exit 0
else
echo "New patch, building..."