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

Fix incorrect directory pruning, simplify path handling #36

Merged
merged 10 commits into from
Jun 7, 2020

Conversation

rwe
Copy link
Contributor

@rwe rwe commented Jan 31, 2019

Noticed some paths were not being visited correctly: search was pruned when a directory name matched, but before checking if the sentinel file existed.

This PR simplifies a number of elements of the implementation by running the sentinel file check via find's -execdir. The approach removes the need for the dynamic bash variables etc and should also speed up searches.

This includes some minor code cleanups while I was investigating various approaches.

asimov Show resolved Hide resolved
asimov Show resolved Hide resolved
@rwe
Copy link
Contributor Author

rwe commented May 3, 2019

This has been rebased

@stevegrunwell stevegrunwell merged commit e2536cc into stevegrunwell:develop Jun 7, 2020
@stevegrunwell
Copy link
Owner

@rwe, my sincerest apologies that this has taken forever and a day to get to, but this looks awesome, thank you so much for your contribution (and patience)!!

@rwe
Copy link
Contributor Author

rwe commented Jun 7, 2020

No worries, there was no rush. Thanks for getting to it and for the useful tool!

@stevegrunwell stevegrunwell mentioned this pull request Jun 16, 2020
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

Successfully merging this pull request may close these issues.

3 participants