From f4c3611c8efc9f1cd3ea7c287c535711d00c6939 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Fri, 1 Jul 2016 19:45:24 +0300 Subject: [build] Fix for `tidy` output --- scripts/clang-tools.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/clang-tools.sh') diff --git a/scripts/clang-tools.sh b/scripts/clang-tools.sh index 23d5b289ef..f26b065263 100755 --- a/scripts/clang-tools.sh +++ b/scripts/clang-tools.sh @@ -20,10 +20,10 @@ cd $1 function check_tidy() { echo "Running clang-tidy on $0..." - if [ -n $1 ] && [ $1 == "--fix" ]; then - OUTPUT=$(${CLANG_TIDY} -p=$PWD -fix -fix-errors $0 2>/dev/null) + if [[ -n $1 ]] && [[ $1 == "--fix" ]]; then + OUTPUT=$(${CLANG_TIDY} -p=$PWD -fix -fix-errors ${0} 2>/dev/null) else - OUTPUT=$(${CLANG_TIDY} -p=$PWD $0 2>/dev/null) + OUTPUT=$(${CLANG_TIDY} -p=$PWD ${0} 2>/dev/null) fi if [[ -n $OUTPUT ]]; then echo "Caught clang-tidy warning/error:" -- cgit v1.2.1