-
Notifications
You must be signed in to change notification settings - Fork 5
filter whiteout files with find
(instead of using grep
) in create_tarball.sh
#21
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
An alternative way might be to use plain find
with an additional condition, e.g.,
find /path/to/upper -type f ! -name '.wh.*'
Anyhow, up to you to decide if that's worth another change or we go with your change.
No strong preference, but I changed the |
Tested this version interactively in a
|
Hmm, there are still some |
Found it, it was due to the
Running the updated version results in the correct output:
|
Removed one more One more test with this version:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Here it working in the wild: EESSI/software-layer#1130 (comment) |
|| true
to grep
commands in create_tarball.sh
find
(instead of using grep
) in create_tarball.sh
This should solve the issues in the tarball creation steps that we see in for instance EESSI/software-layer#1131. There are some emtpy directories in the
init
folder, and then thegrep
returns 1. By adding|| true
(we already did that for a few othergrep
commands) it will always return 0.edit: instead of adding
|| true
to thegrep
command, we decided to add an option to thefind
command for excluding whiteout files.