Skip to content

Commit

Permalink
fix goreleaser fetch script (#173)
Browse files Browse the repository at this point in the history
Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
  • Loading branch information
everettraven committed Jun 7, 2022
1 parent cd408cd commit 5b29693
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 @@ -16,7 +16,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 5b29693

Please sign in to comment.