summaryrefslogtreecommitdiff
path: root/build.bash
diff options
context:
space:
mode:
Diffstat (limited to 'build.bash')
-rwxr-xr-xbuild.bash4
1 files changed, 4 insertions, 0 deletions
diff --git a/build.bash b/build.bash
index 7a5ac6f..fe5d7b8 100755
--- a/build.bash
+++ b/build.bash
@@ -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