Do not echo try variable

This commit is contained in:
Sayantan Santra 2023-01-31 14:37:05 -06:00
parent 4accd2dce8
commit 238e10cc63

View file

@ -102,7 +102,6 @@ echo "$(date) | Starting check..."
try=0 try=0
while : ; do while : ; do
try=$(($try+1)) try=$(($try+1))
echo $try
[ $try -gt 10 ] && echo "API error!" && exit 2 [ $try -gt 10 ] && echo "API error!" && exit 2
curl -X 'GET' 'https://releases.revanced.app/tools' -H 'accept: application/json' -o latest_versions.json curl -X 'GET' 'https://releases.revanced.app/tools' -H 'accept: application/json' -o latest_versions.json
cat latest_versions.json | jq -e '.error' >/dev/null || break cat latest_versions.json | jq -e '.error' >/dev/null || break