Skip to content

Commit 17fe415

Browse files
j-hcthunderkex
authored andcommitted
update get_prebuilts
1 parent 51ebc94 commit 17fe415

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ get_prebuilts() {
9191
local resp asset name
9292
resp=$(gh_req "$rv_rel" -) || return 1
9393
tag_name=$(jq -r '.tag_name' <<<"$resp")
94-
matches=$(jq -e '.assets | map(select(.name | endswith("asc") | not))' <<<"$resp")
94+
matches=$(jq -e '.assets | map(select(.name | (endswith("asc") or endswith("json")) | not))' <<<"$resp")
9595
if [ "$(jq 'length' <<<"$matches")" -gt 1 ]; then
9696
local matches_new
9797
matches_new=$(jq -e -r 'map(select(.name | contains("-dev") | not))' <<<"$matches")
@@ -746,7 +746,8 @@ build_rv() {
746746
if [ "$version_mode" = auto ]; then
747747
if ! version=$(get_patch_last_supported_ver "$list_patches" "$pkg_name" \
748748
"${args[included_patches]}" "${args[excluded_patches]}" "${args[exclusive_patches]}"); then
749-
exit 1
749+
epr "get_patch_last_supported_ver failed '$list_patches'"
750+
return
750751
elif [ -z "$version" ]; then get_latest_ver=true; fi
751752
elif isoneof "$version_mode" latest beta; then
752753
get_latest_ver=true

0 commit comments

Comments
 (0)