From 2f33580f3226a0129e35e81e950dbfe44c1e7f4d Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sun, 7 Mar 2021 15:55:28 +0000 Subject: [PATCH] remove testing goreleaser script, oops --- goreleaser | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100755 goreleaser diff --git a/goreleaser b/goreleaser deleted file mode 100755 index 043e917..0000000 --- a/goreleaser +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -set -e - -TAR_FILE="/tmp/goreleaser.tar.gz" -RELEASES_URL="https://github.com/goreleaser/goreleaser/releases" -test -z "$TMPDIR" && TMPDIR="$(mktemp -d)" - -last_version() { - curl -sL -o /dev/null -w %{url_effective} "$RELEASES_URL/latest" | - rev | - cut -f1 -d'/'| - rev -} - -download() { - test -z "$VERSION" && VERSION="$(last_version)" - test -z "$VERSION" && { - echo "Unable to get goreleaser version." >&2 - exit 1 - } - rm -f "$TAR_FILE" - curl -s -L -o "$TAR_FILE" \ - "$RELEASES_URL/download/$VERSION/goreleaser_$(uname -s)_$(uname -m).tar.gz" -} - -download -tar -xf "$TAR_FILE" -C "$TMPDIR" -"${TMPDIR}/goreleaser" "$@"