diff --git a/scripts/dist/install-go.sh b/scripts/dist/install-go.sh index 42fca0089..f719efd1a 100755 --- a/scripts/dist/install-go.sh +++ b/scripts/dist/install-go.sh @@ -15,7 +15,7 @@ fi # Query version. if [[ -z $GOLANG_VERSION ]]; then - GOLANG_VERSION=$(curl -fsSL https://go.dev/VERSION?m=text) + GOLANG_VERSION=$(curl -fsSL https://go.dev/VERSION?m=text | head -n 1) fi echo "Installing ${GOLANG_VERSION} in \"${DESTDIR}\"..."