Skip to content

Commit

Permalink
fix get_rv_prebuilts
Browse files Browse the repository at this point in the history
  • Loading branch information
j-hc committed Oct 6, 2024
1 parent 1a7678c commit 01c85cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ get_rv_prebuilts() {
else
local for_err=$file
if [ "$ver" = "latest" ]; then
file=$(grep -v dev <<<"$file" | head -1)
else file=$(grep "${ver#v}" <<<"$file" | head -1); fi
file=$(grep -v '/[^/]*dev[^/]*$' <<<"$file" | head -1)
else file=$(grep "/[^/]*${ver#v}[^/]*\$" <<<"$file" | head -1); fi
if [ -z "$file" ]; then abort "filter fail: '$for_err' with '$ver'"; fi
name=$(basename "$file")
tag_name=$(cut -d'-' -f3- <<<"$name")
Expand Down

0 comments on commit 01c85cb

Please sign in to comment.