From 6b7b8ef8d0339db8a87f37ed3a74b1ba9b4d9d43 Mon Sep 17 00:00:00 2001 From: billz Date: Mon, 3 Feb 2025 00:20:03 -0800 Subject: [PATCH] Refine API response condition --- installers/raspbian.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installers/raspbian.sh b/installers/raspbian.sh index 46129966..66145ace 100755 --- a/installers/raspbian.sh +++ b/installers/raspbian.sh @@ -239,7 +239,7 @@ function _get_release() { local host="api.github.com" response=$(curl -s "https://$host/repos/$repo/releases/latest") - if echo "$response" | grep -q '"API rate limit exceeded"'; then + if echo "$response" | grep -q 'API rate limit exceeded'; then _install_status 1 "GitHub API rate limit exceeded. Try again later or use a GitHub token." return 1 fi