Revert "Return a meaningful message if we hit the rate-limiter of GitHub"

This commit is contained in:
Natasha Sarkar
2021-08-31 13:13:36 -07:00
committed by GitHub
parent c3a67cfdca
commit 7d0b7e2113

View File

@@ -102,14 +102,7 @@ elif [[ "$OSTYPE" == darwin* ]]; then
opsys=darwin
fi
releases=$(curl -s $release_url)
if [[ $releases == *"API rate limit exceeded"* ]]; then
echo "Github rate-limiter failed the request. Either authenticate or wait a couple of minutes."
exit 1
fi
RELEASE_URL=$(echo $releases |\
RELEASE_URL=$(curl -s $release_url |\
grep browser_download.*${opsys}_${arch} |\
cut -d '"' -f 4 |\
sort -V | tail -n 1)