aboutsummaryrefslogtreecommitdiff
path: root/aux/assert-clang-format.sh
diff options
context:
space:
mode:
Diffstat (limited to 'aux/assert-clang-format.sh')
-rwxr-xr-xaux/assert-clang-format.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/aux/assert-clang-format.sh b/aux/assert-clang-format.sh
index 17931de..cf3fbb4 100755
--- a/aux/assert-clang-format.sh
+++ b/aux/assert-clang-format.sh
@@ -7,10 +7,10 @@ if [ "${1:-}" = '--fix-in-place' ]; then
fi
# shellcheck disable=2016
-find . -type f \( -name '*.h' -o -name '*.c' \) | xargs -I{} sh -c '
+find . -type f \( -name '*.h' -o -name '*.c' \) -exec sh -c '
clang-format "$1" | diff - "$1" || {
echo "Unformatted C code. To fix it, run:"
echo " ./aux/assert-clang-format.sh --fix-in-place"
exit 1
}
-' _ {} \;
+' _ {} +