From a2ad14b9ac92384f7cc0e8a0d8f385a9cd9a299a Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 13 Apr 2020 12:35:40 +0200 Subject: [PATCH] build.bash: append branch name != master --- build.bash | 4 ++++ 1 file changed, 4 insertions(+) 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