Update tools.func
This commit is contained in:
parent
b5e68e5b38
commit
33bd4ac0e9
@ -883,7 +883,10 @@ function fetch_and_deploy_gh_release() {
|
||||
|
||||
local asset_url=""
|
||||
for u in $(echo "$json" | jq -r '.assets[].browser_download_url'); do
|
||||
[[ "$u" =~ $pattern || "$u" == *"$pattern" ]] && asset_url="$u" && break
|
||||
if [[ "$u" == $pattern ]]; then
|
||||
asset_url="$u"
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
[[ -z "$asset_url" ]] && {
|
||||
|
Loading…
x
Reference in New Issue
Block a user