Fix build.sh

main
Neil Alexander 2020-10-02 11:49:13 +01:00
parent 28454d6fb7
commit 1b29e5771f
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944
1 changed files with 4 additions and 1 deletions

View File

@ -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