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:
@@ -775,7 +775,7 @@ fetch_and_deploy_gh_release() {
|
|||||||
local assets url_match=""
|
local assets url_match=""
|
||||||
assets=$(echo "$json" | jq -r '.assets[].browser_download_url')
|
assets=$(echo "$json" | jq -r '.assets[].browser_download_url')
|
||||||
|
|
||||||
# 1. Versuche, nach genauer Architektur zu matchen (z. B. x86_64, amd64, arm64)
|
# 1. Try to match by exact architecture (e.g. x86_64, amd64, arm64)
|
||||||
for u in $assets; do
|
for u in $assets; do
|
||||||
if [[ "$u" =~ ($arch|amd64|x86_64|aarch64|arm64).*\.deb$ ]]; then
|
if [[ "$u" =~ ($arch|amd64|x86_64|aarch64|arm64).*\.deb$ ]]; then
|
||||||
url_match="$u"
|
url_match="$u"
|
||||||
@@ -783,7 +783,7 @@ fetch_and_deploy_gh_release() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# 2. Wenn keine Arch-Zuordnung, nimm erstes .deb im Asset-Listing
|
# 2. If no Arch mapping, use the first .deb in the asset listing
|
||||||
if [[ -z "$url_match" ]]; then
|
if [[ -z "$url_match" ]]; then
|
||||||
for u in $assets; do
|
for u in $assets; do
|
||||||
if [[ "$u" =~ \.deb$ ]]; then
|
if [[ "$u" =~ \.deb$ ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user