From 3637827781f45d47a592d149f559ae5cc7996202 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 7 Apr 2025 11:58:04 +0200 Subject: [PATCH] Update install.func --- misc/install.func | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/misc/install.func b/misc/install.func index 1938f1e..dc59621 100644 --- a/misc/install.func +++ b/misc/install.func @@ -286,6 +286,15 @@ fetch_and_deploy_gh_release() { echo "🔍 Checking latest release for: $repo" + # ensure that jq is installed + if ! command -v jq &>/dev/null; then + apt-get update -qq &>/dev/null + apt-get install -y jq &>/dev/null || { + msg_error "Failed to install jq" + return 1 + } + fi + [[ -n "${GITHUB_TOKEN:-}" ]] && header=(-H "Authorization: token $GITHUB_TOKEN") until [[ $attempt -ge $max_attempts ]]; do @@ -338,7 +347,7 @@ fetch_and_deploy_gh_release() { local version="$tag" - # Bestimme Plattform + # determine platform local os="Linux" local arch="$(uname -m)" case "$arch" in