diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 2cf879d..9d04fec 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -43,8 +43,8 @@ jobs: if [ ! -x "$GOROOT/bin/go" ]; then echo "Go not found in $GOROOT, downloading latest stable..." - - GO_VERSION=$(curl -s https://go.dev/VERSION?m=text | tr -d '\n\r') + + GO_VERSION=$(curl -s https://go.dev/VERSION?m=text | head -n1) echo "Latest version is $GO_VERSION" mkdir -p /data/go