Skip to content

Commit

Permalink
Fix go.dev/VERSION format change (#130)
Browse files Browse the repository at this point in the history
fixes #129
  • Loading branch information
f0o committed Aug 10, 2023
1 parent 2bdbc5c commit bf9950f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup-go.sh
@@ -1,7 +1,7 @@
#!/bin/bash -eux

ARCH=$(dpkg --print-architecture)
GO_LINUX_PACKAGE_URL="https://go.dev/dl/$(curl https://go.dev/VERSION?m=text).linux-${ARCH}.tar.gz"
GO_LINUX_PACKAGE_URL="https://go.dev/dl/$(curl https://go.dev/VERSION?m=text | head -n1).linux-${ARCH}.tar.gz"
if [[ "${INPUT_GOVERSION##*/}" == "go.mod" ]]; then
INPUT_GOVERSION=$(grep -e '^go' -m 1 ${INPUT_GOVERSION} | sed -e 's/go //g')
fi
Expand Down

0 comments on commit bf9950f

Please sign in to comment.