Fix string compare whitespace
parent
f63208ba41
commit
b6c8346df1
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue