Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action always fails on folders whose name ends on .h or any other C-like suffix #226

Open
Mrkol opened this issue Dec 24, 2024 · 1 comment

Comments

@Mrkol
Copy link

Mrkol commented Dec 24, 2024

Title says it all. Don't ask why we have folders named like that, and no, we physically cannot change the names =)

@echoix
Copy link

echoix commented Dec 24, 2024

Just speculating like that, I imagine that adding a test to the find invocation like -type f (limit search to type that are files) would do the trick.

# All files improperly formatted will be printed to the output.
src_files=$(find "$CHECK_PATH" -name .git -prune -o -regextype posix-egrep -regex "$INCLUDE_REGEX" -print)

It cannot be before the -prune -o, (the -o is "or"), but can be somewhere in there

I didn't evaluate if there are some undesirable side effects in the current situation though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants