Skip to content

Commit dd5d320

Browse files
prezhamedyagh
authored andcommitted
fix verion comparison in check_install_golang script
1 parent 49981a7 commit dd5d320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/jenkins/installers/check_install_golang.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function check_and_install_golang() {
5555
# golang has been installed and check its version
5656
if [[ $(go version | cut -d' ' -f 3) =~ go(([0-9]+)\.([0-9]+).([0-9]+)*) ]]; then
5757
HOST_VERSION=${BASH_REMATCH[1]}
58-
if [ $HOST_VERSION = $VERSION_TO_INSTALL ]; then
58+
if [ $HOST_VERSION == $VERSION_TO_INSTALL ]; then
5959
echo "go version on the host looks good : $HOST_VERSION"
6060
else
6161
echo "WARNING: expected go version to be $VERSION_TO_INSTALL but got $HOST_VERSION"

0 commit comments

Comments
 (0)