Skip to content

Commit

Permalink
scripts/release.sh: Reconciled "github-release must be installed" err…
Browse files Browse the repository at this point in the history
…or with the attempt to auto-install it later in the file

Signed-off-by: Bill Robinson <[email protected]>
  • Loading branch information
dseevr committed May 19, 2017
1 parent 81e7ae8 commit 77fb940
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@

cd -P -- "$(dirname -- "$0")"

# Install github-release binary if not present
if [ -z "$(which github-release)" ]; then
echo "Please install github-release before running this script"
echo "You may download a release from https://github.com/aktau/github-release/releases or run 'go get github.com/aktau/github-release' if you have Go installed"
exit 1
go get -u github.com/aktau/github-release || exit 1
fi

if [ -z "$BUILD_VERSION" ]; then
Expand Down Expand Up @@ -44,9 +43,6 @@ else
changelog="don't forget to update the changelog"
fi

# Install github-release binary if not present
[ -n "$(which github-release)" ] || go get -u github.com/aktau/github-release || exit 1

TAR_FILENAME="contiv-"${BUILD_VERSION}".tgz"
TAR_FILENAME2="contiv-full-"${BUILD_VERSION}".tgz"
TAR_FILE="../release/contiv-"${BUILD_VERSION}".tgz"
Expand Down

0 comments on commit 77fb940

Please sign in to comment.