diff --git a/misc/tools.func b/misc/tools.func index f1aa7a8e7..ba474dbb7 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -854,9 +854,9 @@ function fetch_and_deploy_gh_release() { assets=$(echo "$json" | jq -r '.assets[].browser_download_url') # If explicit filename pattern is provided (param $6), match that first - if [[ -n "$6" ]]; then + if [[ -n "$asset_pattern" ]]; then for u in $assets; do - [[ "$u" =~ $6 || "$u" == *"$6" ]] && url_match="$u" && break + [[ "$u" =~ $asset_pattern || "$u" == *"$asset_pattern" ]] && url_match="$u" && break done fi