From bda395d374d009613df666d4d0794567c21a3c26 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 22 Apr 2017 18:57:57 +0200 Subject: [PATCH] shell wants ==, not = for string compares? --- s/build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/s/build b/s/build index 818cb0268..b3db6d11b 100755 --- a/s/build +++ b/s/build @@ -33,8 +33,9 @@ fi echo "build eressea" cd $ROOT/$BUILD BRANCH=$(git status -s -b | head -1 | cut -d\ -f 2 | sed 's/\..*//') -if [ "$BRANCH" = "master" ] ; then +if [ "$BRANCH"=="master" ] ; then VERSION=$(git describe --match 'v*.*.*' --tags | sed 's/^v//') +echo "master $VERSION" cmake -DERESSEA_VERSION="$VERSION" .. else REV=$(git rev-parse --short HEAD)