diff options
author | EuAndreh <eu@euandre.org> | 2021-03-09 08:40:34 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-03-09 08:40:34 -0300 |
commit | c61321a8c119be29be497709a9eb360fb04a415f (patch) | |
tree | 89cc55df44585d078efc54063838fe88b7beb366 | |
parent | Remove xargs -0 flag usage (diff) | |
download | remembering-c61321a8c119be29be497709a9eb360fb04a415f.tar.gz remembering-c61321a8c119be29be497709a9eb360fb04a415f.tar.xz |
assert-clang-format.sh: ShellCheck
-rwxr-xr-x | aux/assert-clang-format.sh | 4 |
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 } -' _ {} \; +' _ {} + |