fixing improper version passed from input
This commit is contained in:
10
install.sh
10
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"
|
||||
|
||||
Reference in New Issue
Block a user