From 5445729c0eb492ed9cf59b9fa2077e63d730f91f Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 5 May 2025 10:07:35 +0200 Subject: [PATCH] Update tools.func --- misc/tools.func | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/tools.func b/misc/tools.func index 4067d55..a997e97 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -345,7 +345,7 @@ install_go() { esac # Determine version - if [[ -z "$GO_VERSION" || "$GO_VERSION" == "latest" ]]; then + if [[ -z "${GO_VERSION:-}" || "${GO_VERSION}" == "latest" ]]; then GO_VERSION=$(curl -fsSL https://go.dev/VERSION?m=text | head -n1 | sed 's/^go//') if [[ -z "$GO_VERSION" ]]; then msg_error "Could not determine latest Go version"