From b4cb46f3a691884b67794073df6f5547accecef8 Mon Sep 17 00:00:00 2001 From: jake Date: Wed, 27 May 2026 14:31:23 -0400 Subject: [PATCH] fixing improper version passed from input --- install.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 3a12c54..5059345 100755 --- a/install.sh +++ b/install.sh @@ -44,18 +44,16 @@ if [[ -z $GO_INSTALL_VERSION ]]; then fixVersion fi else - DL_VERSION_RAW=$GO_INSTALL_VERSION + DL_VERSION=$GO_INSTALL_VERSION fi -echo "Found go version: ${DL_VERSION_RAW}" +echo "Found go version: ${DL_VERSION}" DL_ARCH=$GO_INSTALL_ARCH -# DL_VSPL=( $DL_VERSION_RAW ) -# DL_VERSION="${DL_VSPL[1]}" -# #ensure we have patch-level version, if not add 0 for stable releases -# # -P uses perl syntax +#ensure we have patch-level version, if not add 0 for stable releases +# -P uses perl syntax # DL_VERSION_PAD_CHECK="$(grep "^go [0-9]+.[0-9]+.[0-9]+" go.mod -P)" # if [[ -z "$DL_VERSION_PAD_CHECK" ]]; then # DL_VERSION="$DL_VERSION"".0"