[core]: improve binary globbing for gh releases (#7044)

This commit is contained in:
CanbiZ 2025-08-21 09:14:59 +02:00 committed by GitHub
parent bf99523a94
commit e85353856b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -894,7 +894,12 @@ function fetch_and_deploy_gh_release() {
# If explicit filename pattern is provided (param $6), match that first
if [[ -n "$asset_pattern" ]]; then
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
fi