Fix string compare whitespace

pull/5095/head
Medya Gh 2019-08-15 15:12:16 -07:00
parent f63208ba41
commit b6c8346df1
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ function check_and_install_golang() {
if [[ $(go version) =~ (([0-9]+)\.([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"