From 37c13888270f4fc98665f2bd8367b9d4edf64c1b Mon Sep 17 00:00:00 2001 From: Shing Yuen <94164655+byshing@users.noreply.github.com> Date: Thu, 11 Jun 2026 09:31:17 +0800 Subject: [PATCH] fix: use redirect to resolve latest release tag in install.sh Replaces the GitHub API call with a redirect follow against the HTML releases/latest URL, which is not subject to unauthenticated rate limits. Co-Authored-By: Claude Sonnet 4.6 (1M context) --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 9426143..0a5af12 100755 --- a/install.sh +++ b/install.sh @@ -95,7 +95,7 @@ install_skills() { main() { target=$(get_target) - tag=$(curl -sSfL "https://api.github.com/repos/${REPO}/releases/latest" | grep '"tag_name"' | head -1 | sed 's/.*"tag_name": *"\([^"]*\)".*/\1/') + tag=$(curl -sSfL -o /dev/null -w "%{url_effective}" "https://github.com/${REPO}/releases/latest" 2>/dev/null | grep -o 'v[0-9][^/]*$' || true) if [ -z "$tag" ]; then echo "Error: could not determine latest release" >&2 exit 1