-
Notifications
You must be signed in to change notification settings - Fork 15
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
trz42
left a comment
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: |
trz42
left a comment
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.shfind (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
initfolder, and then thegrepreturns 1. By adding|| true(we already did that for a few othergrepcommands) it will always return 0.edit: instead of adding
|| trueto thegrepcommand, we decided to add an option to thefindcommand for excluding whiteout files.