diff options
author | EuAndreh <eu@euandre.org> | 2021-03-08 22:27:32 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-03-08 22:27:32 -0300 |
commit | 14d2c374da30e8684836472d9f1d1dd1f89d8013 (patch) | |
tree | 02cb0309e7af155b19fb1f4c9559c742564fe990 /aux/assert-clang-format.sh | |
parent | TODOs.md: Add #task-8af5055c-d1e1-beba-128c-4cabc40e8057 (diff) | |
download | remembering-14d2c374da30e8684836472d9f1d1dd1f89d8013.tar.gz remembering-14d2c374da30e8684836472d9f1d1dd1f89d8013.tar.xz |
Remove xargs -0 flag usage
Diffstat (limited to 'aux/assert-clang-format.sh')
-rwxr-xr-x | aux/assert-clang-format.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aux/assert-clang-format.sh b/aux/assert-clang-format.sh index c7ee6d7..17931de 100755 --- a/aux/assert-clang-format.sh +++ b/aux/assert-clang-format.sh @@ -7,7 +7,7 @@ if [ "${1:-}" = '--fix-in-place' ]; then fi # shellcheck disable=2016 -find . -type f \( -name '*.h' -o -name '*.c' \) -print0 | xargs -0 -I{} sh -c ' +find . -type f \( -name '*.h' -o -name '*.c' \) | xargs -I{} sh -c ' clang-format "$1" | diff - "$1" || { echo "Unformatted C code. To fix it, run:" echo " ./aux/assert-clang-format.sh --fix-in-place" |