build.bash: append branch name != master
This commit is contained in:
parent
210db84e20
commit
a2ad14b9ac
@ -29,6 +29,10 @@ fi
|
||||
# gocryptfs version according to git or a VERSION file
|
||||
if [[ -d .git ]] ; then
|
||||
GITVERSION=$(git describe --tags --dirty)
|
||||
GITBRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
if [[ -n $GITBRANCH && $GITBRANCH != master ]] ; then
|
||||
GITVERSION="$GITVERSION.$GITBRANCH"
|
||||
fi
|
||||
elif [[ -f VERSION ]] ; then
|
||||
GITVERSION=$(cat VERSION)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user