Skip to content

Commit f5ec267

Browse files
j-hcpeternmuller
authored andcommitted
update get_prebuilts
1 parent d4d7de1 commit f5ec267

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")
@@ -578,7 +578,8 @@ build_rv() {
578578
if [ "$version_mode" = auto ]; then
579579
if ! version=$(get_patch_last_supported_ver "$list_patches" "$pkg_name" \
580580
"${args[included_patches]}" "${args[excluded_patches]}" "${args[exclusive_patches]}"); then
581-
exit 1
581+
epr "get_patch_last_supported_ver failed '$list_patches'"
582+
return
582583
elif [ -z "$version" ]; then get_latest_ver=true; fi
583584
elif isoneof "$version_mode" latest beta; then
584585
get_latest_ver=true

0 commit comments

Comments
 (0)