summaryrefslogtreecommitdiff
path: root/build.bash
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-04-13 12:35:40 +0200
committerJakob Unterwurzacher2020-04-13 14:54:04 +0200
commita2ad14b9ac92384f7cc0e8a0d8f385a9cd9a299a (patch)
tree73990c317928b9684ee6f6be6fb1aacec3e8f960 /build.bash
parent210db84e200671d6eee195f47eaf5c696cca089e (diff)
build.bash: append branch name != master
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