From b1f90568ac4e9f457b00768990787b8836c71f3c Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 13 May 2025 10:10:44 +0200 Subject: [PATCH] Update tools.func --- misc/tools.func | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index ece90caa..3caaf19d 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -586,12 +586,11 @@ fetch_and_deploy_gh_release() { fi # Version comparison (if we already have this version, skip) - if [[ "$current_version" == "$tag" ]]; then - $STD msg_info "Already running the latest version ($tag). Skipping update." + if [[ "$current_version" == "$version" ]]; then + $STD msg_info "Already running the latest version ($version). Skipping update." return 0 fi - local version="$tag" local base_url="https://github.com/$repo/releases/download/v$tag" local tmpdir tmpdir=$(mktemp -d) || return 1