check_install_golang.sh: fix "HOST_VERSION: command not found" issue
HOST_VERSION is defined in if, we can't use it in else Signed-off-by: Ma Xinjian <maxj.fnst@cn.fujitsu.com>pull/8879/head
parent
47435d94a7
commit
db830c355c
|
@ -43,7 +43,7 @@ function check_and_install_golang() {
|
|||
install_golang "$VERSION_TO_INSTALL" "$INSTALL_PATH"
|
||||
fi
|
||||
else
|
||||
echo "ERROR: Failed to parse golang version: $HOST_VERSION"
|
||||
echo "ERROR: Failed to parse golang version: $(go version)"
|
||||
return
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue