From 11507a2c63002930eafbfa1b246c8b5cac849d9a Mon Sep 17 00:00:00 2001 From: uta8a Date: Sat, 7 Aug 2021 11:43:57 +0900 Subject: [PATCH] fix: scripts/pre-commit --- scripts/pre-commit | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/pre-commit b/scripts/pre-commit index d28e642d..e2be9173 100755 --- a/scripts/pre-commit +++ b/scripts/pre-commit @@ -12,8 +12,7 @@ git diff --exit-code *.cabal \ # C++ which clang-format \ || { echo HINT: Please install clang-format; false; } -for f in $(find runtime/include examples/data -name \*.\?pp); do diff $f <(clang-format $f); done \ - || { echo HINT: Please run '$ clang-format -i $(find runtime/include examples/data -name \*.\?pp);' ; false; } +for f in $(find runtime/include examples/data -name \*.\?pp); do diff $f <(clang-format $f) || { echo HINT: Please run '$ clang-format -i $(find runtime/include examples/data -name \*.\?pp);' ; false; }; done # Python isort --version \