Skip to content

Commit 9a501a7

Browse files
authored
update goreleaser install method (operator-framework#5782)
Signed-off-by: Bryce Palmer <[email protected]>
1 parent 2c39ee1 commit 9a501a7

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
@@ -32,7 +32,9 @@ fetch() {
3232
;;
3333
"goreleaser")
3434
ver_cmd="${DEST}/goreleaser --version 2>/dev/null | grep version | cut -d' ' -f3"
35-
fetch_cmd="curl -sSfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh -s -- -b \"${DEST}\" -d \"v${ver}\""
35+
osCap="$(uname -s)"
36+
archBase="$(uname -m)"
37+
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)"
3638
;;
3739
*)
3840
echo "unknown tool $tool"

0 commit comments

Comments
 (0)