From ad19e776c69fd1697927ba9b10049360f814e47b Mon Sep 17 00:00:00 2001 From: ptrv Date: Wed, 31 Dec 2014 12:22:31 +0100 Subject: [PATCH] Fix condition in build script --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 19a2702dbb..dab5d71008 100755 --- a/build.sh +++ b/build.sh @@ -144,8 +144,8 @@ for flag in $@; do esac done -if [ $cmake_args = *-DUSE_SYSTEM_LIBCLANG=ON* ] && \ - [ $cmake_args != *-DUSE_CLANG_COMPLETER=ON* ]; then +if echo $cmake_args | grep -q ".*-DUSE_SYSTEM_LIBCLANG=ON.*" && + ! echo $cmake_args | grep -q ".*-DUSE_CLANG_COMPLETER=ON.*"; then usage fi