shell wants spaces around = for string compares?

This commit is contained in:
Enno Rehling 2017-04-22 18:57:57 +02:00
parent 3682fb472e
commit 1eb189cf47

View file

@ -35,6 +35,7 @@ cd $ROOT/$BUILD
BRANCH=$(git status -s -b | head -1 | cut -d\ -f 2 | sed 's/\..*//')
if [ "$BRANCH" = "master" ] ; then
VERSION=$(git describe --match 'v*.*.*' --tags | sed 's/^v//')
echo "$BRANCH $VERSION"
cmake -DERESSEA_VERSION="$VERSION" ..
else
REV=$(git rev-parse --short HEAD)