From 8b04f022d89c6967b3e57af1b1c385a152412991 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Mon, 8 Mar 2021 11:09:41 -0500 Subject: [PATCH] chore: Ignore submodules --- format.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/format.sh b/format.sh index 516950a..d0c5c49 100755 --- a/format.sh +++ b/format.sh @@ -25,6 +25,6 @@ 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/jsmn/*|./runtime/http-parser/*" | # Excluding those in the jsmn or http-parser submodules - xargs clang-format -i # And format them with clang-format +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