Skip to content

Commit

Permalink
fix autoformat.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
aremmell committed Jan 7, 2024
1 parent fd8435d commit 2c7fd0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoformat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ run_cppi()
{
printf '%s' "Formatting with cppi ... "
( # shellcheck disable=SC2038
find . -name "*.[ch]" -o -name "*.cc" -o -name "*.hh" -print | \
grep -Ev '(mcmb\.c|\.git/.*)' | \
find . -name "*.[ch]" -o -name "*.cc" -o -name "*.hh" | \
grep -Ev '(mcmb\.c|\.git/.*|build/.*)' | \
xargs -I{} "${SHELL:-sh}" -c \
'set -e; cppi "{}" > "{}.cppi" && mv -f "{}.cppi" "{}"'
) && printf '%s\n' "complete."
Expand Down

0 comments on commit 2c7fd0a

Please sign in to comment.