[core]: improve binary globbing for gh releases (#7044)
This commit is contained in:
parent
bf99523a94
commit
e85353856b
@ -894,7 +894,12 @@ function fetch_and_deploy_gh_release() {
|
|||||||
# If explicit filename pattern is provided (param $6), match that first
|
# If explicit filename pattern is provided (param $6), match that first
|
||||||
if [[ -n "$asset_pattern" ]]; then
|
if [[ -n "$asset_pattern" ]]; then
|
||||||
for u in $assets; do
|
for u in $assets; do
|
||||||
[[ "$u" =~ $asset_pattern || "$u" == *"$asset_pattern" ]] && url_match="$u" && break
|
case "${u##*/}" in
|
||||||
|
$asset_pattern)
|
||||||
|
url_match="$u"
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user