CI: Update Go install script to fix latest version query

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2023-08-11 14:15:13 +02:00
parent e6679e6c50
commit 4e05270385

View file

@ -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}\"..."