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

Commit 630c607

Browse files
committed
Infers VERSION if possible
1 parent 6404490 commit 630c607

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

script/deb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ if [ -z "$GOOS" -o -z "$GOARCH" ]; then
1414
exit 1
1515
fi
1616

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

0 commit comments

Comments
 (0)