Merge pull request #11 from jedisct1/notag
Cope with branches that don't have tags
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
[ -z "${VERSION}" ] && VERSION=`git describe --tags --always 2>/dev/null` \
|
[ -z "${VERSION}" ] && VERSION=`git describe --tags --always 2>/dev/null | \
|
||||||
|
fgrep .` \
|
||||||
&& VERSION=${VERSION#v}
|
&& VERSION=${VERSION#v}
|
||||||
|
|
||||||
[ -z "${VERSION}" ] && VERSION=`cat VERSION 2>/dev/null`
|
[ -z "${VERSION}" ] && VERSION=`cat VERSION 2>/dev/null`
|
||||||
|
|||||||
Reference in New Issue
Block a user