Skip to content

Commit e853538

Browse files
authored
[core]: improve binary globbing for gh releases (#7044)
1 parent bf99523 commit e853538

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

misc/tools.func

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,12 @@ function fetch_and_deploy_gh_release() {
894894
# If explicit filename pattern is provided (param $6), match that first
895895
if [[ -n "$asset_pattern" ]]; then
896896
for u in $assets; do
897-
[[ "$u" =~ $asset_pattern || "$u" == *"$asset_pattern" ]] && url_match="$u" && break
897+
case "${u##*/}" in
898+
$asset_pattern)
899+
url_match="$u"
900+
break
901+
;;
902+
esac
898903
done
899904
fi
900905

0 commit comments

Comments
 (0)