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 chart finder when dir is more than 1 dir deep #41

Closed
wants to merge 1 commit into from

Conversation

isaaguilar
Copy link

fixes chart_dir when charts are deeper than 1 dir from root

cr.sh Outdated
fi

cut -d '/' -f "$fields" <<< "$changed_files" | uniq | filter_charts
find "$charts_dir" -maxdepth 1 -type d -not -path "$charts_dir" |filter_charts
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this will work as expected as it does not take into consideration the changed_files

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing that out. I forgot to do the comparison against that var here; not sure how I missed that.

@isaaguilar
Copy link
Author

Closing this PR for the much more elegant solution in #47

@isaaguilar isaaguilar closed this Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants