Skip to content

Commit 5b29693

Browse files
authored
fix goreleaser fetch script (#173)
Signed-off-by: Bryce Palmer <[email protected]>
1 parent cd408cd commit 5b29693

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/scripts/fetch

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ fetch() {
1616
;;
1717
"goreleaser")
1818
ver_cmd="${DEST}/goreleaser --version 2>/dev/null | grep version | cut -d' ' -f3"
19-
fetch_cmd="curl -sSfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh -s -- -b \"${DEST}\" -d \"v${ver}\""
19+
osCap="$(uname -s)"
20+
archBase="$(uname -m)"
21+
fetch_cmd="(curl -sSfLo '${DEST}/goreleaser.tar.gz' 'https://github.com/goreleaser/goreleaser/releases/download/v${ver}/goreleaser_${osCap}_${archBase}.tar.gz' && tar -xf $DEST/goreleaser.tar.gz -C $DEST)"
2022
;;
2123
*)
2224
echo "unknown tool $tool"

0 commit comments

Comments
 (0)