Skip to content

Commit

Permalink
fix verion comparison in check_install_golang script
Browse files Browse the repository at this point in the history
  • Loading branch information
prezha authored and medyagh committed Jan 16, 2025
1 parent 49981a7 commit dd5d320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/jenkins/installers/check_install_golang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dd5d320

Please sign in to comment.