Skip to content

Commit

Permalink
perf(find): Remove EXCLUDE_REGEX from find command
Browse files Browse the repository at this point in the history
  • Loading branch information
jidicula committed Dec 25, 2023
1 parent bceeb89 commit 6bd3ad0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,15 @@ src_files=$(find \
-prune \
-o \
-regextype posix-egrep \
-not -regex "$EXCLUDE_REGEX" \
-a -regex "$INCLUDE_REGEX" \
-regex "$INCLUDE_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
Expand Down

0 comments on commit 6bd3ad0

Please sign in to comment.