From 0c56fdeb246ec003ab38f6a20c75128217f23467 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 2 Jun 2025 15:40:12 +0200 Subject: [PATCH] Update tools.func --- misc/tools.func | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index 8adab520..f05e7152 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -775,7 +775,7 @@ fetch_and_deploy_gh_release() { local assets url_match="" 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 if [[ "$u" =~ ($arch|amd64|x86_64|aarch64|arm64).*\.deb$ ]]; then url_match="$u" @@ -783,7 +783,7 @@ fetch_and_deploy_gh_release() { fi 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 for u in $assets; do if [[ "$u" =~ \.deb$ ]]; then