add pattern for binary mode

This commit is contained in:
CanbiZ 2025-07-06 20:39:15 +02:00 committed by GitHub
parent 4d2fcb2c66
commit 29d3015314
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -854,9 +854,9 @@ function fetch_and_deploy_gh_release() {
assets=$(echo "$json" | jq -r '.assets[].browser_download_url') assets=$(echo "$json" | jq -r '.assets[].browser_download_url')
# If explicit filename pattern is provided (param $6), match that first # 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 for u in $assets; do
[[ "$u" =~ $6 || "$u" == *"$6" ]] && url_match="$u" && break [[ "$u" =~ $asset_pattern || "$u" == *"$asset_pattern" ]] && url_match="$u" && break
done done
fi fi