diff --git a/tools/clang-format-all.sh b/tools/clang-format-all.sh index 275d856d3..bf6847931 100755 --- a/tools/clang-format-all.sh +++ b/tools/clang-format-all.sh @@ -3,5 +3,5 @@ read -p "Are you sure you want to run clang-format on all files in src/? (y/n) " -n 1 -r echo if [[ $REPLY =~ ^[Yy]$ ]]; then - find src/ -iname "*.hpp" -o -iname "*.cpp" -exec clang-format -i {} \; + find src/ \( -iname "*.hpp" -o -iname "*.cpp" \) -exec clang-format -i {} \; fi