pull/271/head
IceCodeNew 2023-02-20 10:56:51 +08:00 committed by GitHub
parent 6fe4ec401d
commit 138669233a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ get_version() {
exit 1
fi
HTTP_STATUS_CODE=$(awk 'NR==1 {print $2}' "$TMP_FILE")
if [[ "$HTTP_STATUS_CODE" -ge 200 ]] || [[ "$HTTP_STATUS_CODE" -le 299 ]]; then
if [[ $HTTP_STATUS_CODE -lt 200 ]] || [[ $HTTP_STATUS_CODE -gt 299 ]]; then
"rm" "$TMP_FILE"
echo "error: Failed to get release list, GitHub API response code: $HTTP_STATUS_CODE"
exit 1