diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-07-01 19:45:24 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-07-01 19:47:35 +0300 |
commit | f4c3611c8efc9f1cd3ea7c287c535711d00c6939 (patch) | |
tree | bd2fd1299d667fdc2d77cff8353a9ad661dc842c /scripts/clang-tools.sh | |
parent | a17b0bcd82ebe8628b69588d19773d26596b86da (diff) | |
download | qtlocation-mapboxgl-f4c3611c8efc9f1cd3ea7c287c535711d00c6939.tar.gz |
[build] Fix for `tidy` output
Diffstat (limited to 'scripts/clang-tools.sh')
-rwxr-xr-x | scripts/clang-tools.sh | 6 |
1 files changed, 3 insertions, 3 deletions
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:" |