diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-10-02 11:49:13 +0100 |
---|---|---|
committer | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-10-02 11:49:13 +0100 |
commit | 1b29e5771feb335afe0e39e7f33f1d1896dbdb2f (patch) | |
tree | b5936eda26e5f493c36177a587603d781710c37b /build.sh | |
parent | 28454d6fb712d69e299660bef098be0be45c9475 (diff) |
Fix build.sh
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |