Skip to content

Commit 29d3015

Browse files
authored
add pattern for binary mode
1 parent 4d2fcb2 commit 29d3015

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

misc/tools.func

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,9 +854,9 @@ function fetch_and_deploy_gh_release() {
854854
assets=$(echo "$json" | jq -r '.assets[].browser_download_url')
855855

856856
# If explicit filename pattern is provided (param $6), match that first
857-
if [[ -n "$6" ]]; then
857+
if [[ -n "$asset_pattern" ]]; then
858858
for u in $assets; do
859-
[[ "$u" =~ $6 || "$u" == *"$6" ]] && url_match="$u" && break
859+
[[ "$u" =~ $asset_pattern || "$u" == *"$asset_pattern" ]] && url_match="$u" && break
860860
done
861861
fi
862862

0 commit comments

Comments
 (0)