Skip to content

Commit

Permalink
update goreleaser install method (#5783)
Browse files Browse the repository at this point in the history
Signed-off-by: Bryce Palmer <[email protected]>

Co-authored-by: Bryce Palmer <[email protected]>
  • Loading branch information
openshift-cherrypick-robot and everettraven authored May 19, 2022
1 parent 1780d43 commit 181212e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/scripts/fetch
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ fetch() {
;;
"goreleaser")
ver_cmd="${DEST}/goreleaser --version 2>/dev/null | grep version | cut -d' ' -f3"
fetch_cmd="curl -sSfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh -s -- -b \"${DEST}\" -d \"v${ver}\""
osCap="$(uname -s)"
archBase="$(uname -m)"
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)"
;;
*)
echo "unknown tool $tool"
Expand Down

0 comments on commit 181212e

Please sign in to comment.