From 2fd03a2489a0fbb8ac986af38cf332158ef1da0d Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 28 Mar 2017 16:11:45 +0200 Subject: [PATCH] fix string comparison for posix shell --- s/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s/build b/s/build index 4ee259573..818cb0268 100755 --- a/s/build +++ b/s/build @@ -33,7 +33,7 @@ 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//') cmake -DERESSEA_VERSION="$VERSION" .. else