Skip to content

Commit

Permalink
Merge pull request #9 from coredns/yongtang-patch-1
Browse files Browse the repository at this point in the history
Update release-coredns
  • Loading branch information
miekg authored Dec 10, 2021
2 parents aad995c + 7865207 commit b2efc5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions release-coredns
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ function latestGo {
local VERSION="$2"

if [[ -z "$VERSION" ]]; then
local LATEST=$(curl -s 'https://golang.org/dl/?mode=json' | jq -r '.[0].version')
local GOLANG=https://dl.google.com/go/${LATEST}.linux-amd64.tar.gz
local LATEST=$(curl -sL 'https://go.dev/dl/?mode=json' | jq -r '.[0].version')
local GOLANG=https://go.dev/dl/${LATEST}.linux-amd64.tar.gz
else
local LATEST="go${VERSION}" # add 'go' prefix
local GOLANG=https://dl.google.com/go/${LATEST}.linux-amd64.tar.gz
local GOLANG=https://go.dev/dl/${LATEST}.linux-amd64.tar.gz
fi

TAR=$(basename $GOLANG)
Expand Down

0 comments on commit b2efc5c

Please sign in to comment.