aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index f790077e..31e0519f 100755
--- a/build.sh
+++ b/build.sh
@@ -7,7 +7,10 @@ if [ -d ".git" ]
then
export BUILD=`git rev-parse --short HEAD || ""`
export BRANCH=`(git symbolic-ref --short HEAD | tr -d \/ ) || ""`
- [[ $BRANCH == "master" ]] && export BRANCH=""
+ if [[ $BRANCH == "master" ]]
+ then
+ export BRANCH=""
+ fi
export FLAGS="-X github.com/matrix-org/dendrite/internal.branch=$BRANCH -X github.com/matrix-org/dendrite/internal.build=$BUILD"
else