From e531e0372ccfe83a846dfec237fc99059cffda12 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Thu, 30 Apr 2026 09:37:35 +0200 Subject: [PATCH] Update tools.func --- misc/tools.func | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index 953d5bb8..c066685a 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -2503,7 +2503,9 @@ check_for_gh_release() { rm -f "${legacy_files[0]}" fi fi - current="${current#v}" + if [[ "$current" =~ ^v[0-9] ]]; then + current="${current:1}" + fi # Pinned version handling if [[ -n "$pinned_version_in" ]]; then @@ -2631,7 +2633,9 @@ check_for_codeberg_release() { rm -f "${legacy_files[0]}" fi fi - current="${current#v}" + if [[ "$current" =~ ^v[0-9] ]]; then + current="${current:1}" + fi # Pinned version handling if [[ -n "$pinned_version_in" ]]; then