From 9463e051fe90a4354993ea212db75dbd01e508dc Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 2 Apr 2025 10:46:44 +0200 Subject: [PATCH] fixes --- misc/build.func | 2 +- misc/github.func | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/misc/build.func b/misc/build.func index 8d26eca..6604f92 100644 --- a/misc/build.func +++ b/misc/build.func @@ -15,7 +15,7 @@ variables() { } source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/api.func) -#source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/github.func) +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/github.func) # This function sets various color variables using ANSI escape codes for formatting text in the terminal. color() { diff --git a/misc/github.func b/misc/github.func index 06979d5..9cb68c8 100644 --- a/misc/github.func +++ b/misc/github.func @@ -1,4 +1,4 @@ -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) +#source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) get_gh_release() { local repo="$1" @@ -15,10 +15,10 @@ get_gh_release() { until [[ $attempt -ge $max_attempts ]]; do ((attempt++)) - msg_info "[$attempt/$max_attempts] Fetching GitHub release for $repo...\n" + $STD msg_info "[$attempt/$max_attempts] Fetching GitHub release for $repo...\n" if ! api_response=$(curl -fsSL "${header[@]}" "$api_url"); then - msg_info "Request failed, retrying...\n" + $STD msg_info "Request failed, retrying...\n" sleep 2 continue fi @@ -37,12 +37,12 @@ get_gh_release() { [[ "$tag" =~ ^v[0-9] ]] && tag="${tag:1}" if [[ -z "$tag" ]]; then - msg_info "Empty tag received, retrying...\n" + $STD msg_info "Empty tag received, retrying...\n" sleep 2 continue fi - msg_ok "Found release: $tag for $repo" + $STD msg_ok "Found release: $tag for $repo" echo "$tag" return 0 done