From dd5d320e41b5451cdf3c01891bc4e13d189586ed Mon Sep 17 00:00:00 2001 From: Predrag Rogic Date: Thu, 16 Jan 2025 00:36:52 +0000 Subject: [PATCH] fix verion comparison in check_install_golang script --- hack/jenkins/installers/check_install_golang.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/jenkins/installers/check_install_golang.sh b/hack/jenkins/installers/check_install_golang.sh index 8ba2faf621..c9f9d2c7a6 100755 --- a/hack/jenkins/installers/check_install_golang.sh +++ b/hack/jenkins/installers/check_install_golang.sh @@ -55,7 +55,7 @@ function check_and_install_golang() { # golang has been installed and check its version if [[ $(go version | cut -d' ' -f 3) =~ go(([0-9]+)\.([0-9]+).([0-9]+)*) ]]; then HOST_VERSION=${BASH_REMATCH[1]} - if [ $HOST_VERSION = $VERSION_TO_INSTALL ]; then + if [ $HOST_VERSION == $VERSION_TO_INSTALL ]; then echo "go version on the host looks good : $HOST_VERSION" else echo "WARNING: expected go version to be $VERSION_TO_INSTALL but got $HOST_VERSION"