mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 05:57:26 +00:00
Update tools.func
This commit is contained in:
@@ -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" ]] && {
|
||||
|
||||
Reference in New Issue
Block a user