From 0e923b1e33edaaae8bcb024a34d3b9e13a8d1a8c Mon Sep 17 00:00:00 2001 From: Leon Richardt Date: Tue, 24 Sep 2019 23:02:00 +0200 Subject: [PATCH] Fix clang-format only reformatting .cpp files --- tools/clang-format-all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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