From d15514a8bdc40886b5befed7f9f61e047bfd43f4 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 22 Sep 2014 21:01:04 +0000 Subject: Try to pacify dash-using linux distros with a very old-school shell variable compare. While there fix the cmake shared build. llvm-svn: 218274 --- clang-tools-extra/test/clang-tidy/check_clang_tidy_fix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang-tools-extra/test/clang-tidy/check_clang_tidy_fix.sh') diff --git a/clang-tools-extra/test/clang-tidy/check_clang_tidy_fix.sh b/clang-tools-extra/test/clang-tidy/check_clang_tidy_fix.sh index 4cdadeffaf4..dc9a5bb3451 100755 --- a/clang-tools-extra/test/clang-tidy/check_clang_tidy_fix.sh +++ b/clang-tools-extra/test/clang-tidy/check_clang_tidy_fix.sh @@ -15,7 +15,7 @@ TEMPORARY_FILE=$3.cpp # Feed the rest arguments to clang-tidy after --. shift 3 CLANG_TIDY_ARGS=--std=c++11 -if (($# > 0)) ; then +if [ "$#" -gt 0 ] ; then CLANG_TIDY_ARGS=$* fi -- cgit v1.2.3