From 4efe9d2422c7ed86cee5c48ddfdd1c55570b61ff Mon Sep 17 00:00:00 2001 From: jidicula Date: Tue, 26 Dec 2023 12:18:18 -0500 Subject: [PATCH] perf(find): Remove EXCLUDE_REGEX from find command --- check.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/check.sh b/check.sh index 08b853d..ba252b3 100755 --- a/check.sh +++ b/check.sh @@ -95,13 +95,14 @@ src_files=$(find \ -o \ -regextype posix-egrep \ -regex "$INCLUDE_REGEX" \ - -not -regex "$EXCLUDE_REGEX" \ -print) # check formatting in each source file IFS=$'\n' # Loop below should separate on new lines, not spaces. for file in $src_files; do - format_diff "${file}" + if ! [[ ${file} =~ $EXCLUDE_REGEX ]]; then + format_diff "${file}" + fi done # global exit code is flipped to nonzero if any invocation of `format_diff` has