From 02244fd76f8d28bdc49365ed45fec2a5620e7242 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Mon, 22 Mar 2021 09:16:49 -0400 Subject: [PATCH] chore: Add additional directory --- format.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/format.sh b/format.sh index d0c5c49..8c6a804 100755 --- a/format.sh +++ b/format.sh @@ -25,6 +25,9 @@ if ((major < required_major)) || ((minor < required_minor)) || ((patch < require exit 1 fi -find ./runtime -type f -path "./*.[ch]" | # Match all *.c and *.h files in ./runtime - grep --invert-match -E "./runtime/thirdparty/*|./runtime/tests/gocr/*|./runtime/tests/TinyEKF/*|./runtime/tests/CMSIS_5_NN/*|./runtime/tests/sod/*" | # Excluding those in the jsmn or http-parser submodules - xargs clang-format -i # And format them with clang-format +# Match all *.c and *.h files in ./runtime +# Excluding those in the jsmn or http-parser submodules +# And format them with clang-format +find ./runtime -type f -path "./*.[ch]" | + grep --invert-match -E "./runtime/thirdparty/*|./runtime/tests/gocr/*|./runtime/tests/TinyEKF/*|./runtime/tests/CMSIS_5_NN/*|./runtime/tests/sod/*|**/thirdparty/*" | + xargs clang-format -i