Skip to content

Commit

Permalink
Attempt fixing git files being detected by find command
Browse files Browse the repository at this point in the history
Seems to work from my bare-bones testing.

Closes #66
  • Loading branch information
jotoho authored and jidicula committed Dec 28, 2021
1 parent 75e0403 commit 29b8295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ exit_code=0
# c, C, cpp, cc, c++, cxx
# ino, pde
# proto
src_files=$(find "$CHECK_PATH" -regextype posix-egrep -regex '^.*\.((((c|C)(c|pp|xx|\+\+)?$)|((h|H)h?(pp|xx|\+\+)?$))|(ino|pde)|(proto))$')
src_files=$(find "$CHECK_PATH" -name .git -prune -o -regextype posix-egrep -regex '^.*\.((((c|C)(c|pp|xx|\+\+)?$)|((h|H)h?(pp|xx|\+\+)?$))|(ino|pde)|(proto))$' -print)

# check formatting in each source file
for file in $src_files; do
Expand Down

0 comments on commit 29b8295

Please sign in to comment.