From e85353856b5a053bb00ba227614bc95144539929 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 21 Aug 2025 09:14:59 +0200 Subject: [PATCH] [core]: improve binary globbing for gh releases (#7044) --- misc/tools.func | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/misc/tools.func b/misc/tools.func index d5edde6c7..2025f786c 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -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