From 470ab16383ec6455680cc85e073f0bc2f045e36d Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Tue, 17 Jun 2025 22:02:58 +0200 Subject: [PATCH] fix: remove .[0] for jq parsing --- lib/utils.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.bash b/lib/utils.bash index cc716cb..95ddccd 100644 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -48,7 +48,7 @@ sort_versions() { fetch_all_assets() { curl -s -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/${GH_REPO}/releases | - jq -r '.[0].assets[] | "\(.name) \(.browser_download_url)"' + jq -r '.assets[] | "\(.name) \(.browser_download_url)"' } validate_platform() {