diff options
author | Mehrdad Afshari <mmx@google.com> | 2017-12-19 09:13:50 -0800 |
---|---|---|
committer | Mehrdad Afshari <mmx@google.com> | 2017-12-19 09:52:16 -0800 |
commit | 11eb3222045ad48eb71efa927da033967e5d0703 (patch) | |
tree | db5f501d1e9ca0fd5879d115a155a823e5a0e558 /tools | |
parent | 237f9edcf65a8c09c6c2c8d68a4b9014892610aa (diff) |
Fix check_clang_tidy.sh to pass shellcheck
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/run_tests/sanity/check_clang_tidy.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/run_tests/sanity/check_clang_tidy.sh b/tools/run_tests/sanity/check_clang_tidy.sh index 42ab511a20..6c4caa1ee6 100755 --- a/tools/run_tests/sanity/check_clang_tidy.sh +++ b/tools/run_tests/sanity/check_clang_tidy.sh @@ -16,6 +16,6 @@ set -e make buildtests \ - -j `python -c 'import multiprocessing; print multiprocessing.cpu_count()'` -find src/core src/cpp test/core test/cpp -name '*.h' -or -name '*.cc' | \ - xargs tools/distrib/run_clang_tidy.py $* + -j "$(python -c 'import multiprocessing; print multiprocessing.cpu_count()')" +find src/core src/cpp test/core test/cpp -print0 -name '*.h' -or -name '*.cc' \ + | xargs -0 tools/distrib/run_clang_tidy.py "$@" |