forked from github/server
fix string comparison for posix shell
This commit is contained in:
parent
d959fe657c
commit
2fd03a2489
2
s/build
2
s/build
|
@ -33,7 +33,7 @@ fi
|
||||||
echo "build eressea"
|
echo "build eressea"
|
||||||
cd $ROOT/$BUILD
|
cd $ROOT/$BUILD
|
||||||
BRANCH=$(git status -s -b | head -1 | cut -d\ -f 2 | sed 's/\..*//')
|
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//')
|
VERSION=$(git describe --match 'v*.*.*' --tags | sed 's/^v//')
|
||||||
cmake -DERESSEA_VERSION="$VERSION" ..
|
cmake -DERESSEA_VERSION="$VERSION" ..
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue