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

SOOP_BA remove cleanup tmp dir when error during processing zip #418

Merged
merged 1 commit into from
Apr 18, 2016

Conversation

bpasquer
Copy link
Contributor

@lbesnard another bit of code to fix #395 (comment)


unzip_file $file $tmp_dir $tmp_zip_manifest
if [ $? -ne 0 ]; then
rm -rf --preserve-root $tmp_dir
Copy link
Contributor

Choose a reason for hiding this comment

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

why not adding a rm $tmp_zip_manifest as well ?

@lbesnard lbesnard merged commit b7122ff into master Apr 18, 2016
@lbesnard lbesnard deleted the soop_ba_rmdir branch April 18, 2016 06:18
@julian1
Copy link
Contributor

julian1 commented Apr 18, 2016

Why is rm -rf necessary in these cases when unzip has failed?

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.

Need regular clean-up of /mnt/ebs/tmp on 10-aws-syd
3 participants