Skip to content
This repository has been archived by the owner on Feb 13, 2018. It is now read-only.

Commit

Permalink
Infers VERSION if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
alindeman committed Oct 29, 2014
1 parent 6404490 commit 630c607
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions script/deb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ if [ -z "$GOOS" -o -z "$GOARCH" ]; then
exit 1
fi

: ${VERSION:="$(git tag --contains HEAD | head -1)"}
if [ -z "$VERSION" ]; then
echo "Set VERSION as the version of the deb package to build"
echo "For example, VERSION=1.2.0"
Expand Down

0 comments on commit 630c607

Please sign in to comment.