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

Duplicate files will cause halting the script execution (User will not see the popup and Script wait for user responses) #19

Open
vijaysimhagk opened this issue Jan 5, 2022 · 0 comments

Comments

@vijaysimhagk
Copy link

started running the script early this morning. 8 hours later it was still running. The script does not take
into account if there are duplicate files in a zip file. So it seems to hanging. The line where it is hanging is

            unzip -d /tmp/log4j_for_extract/ $war_file > /dev/null

This should be

            unzip -o -d /tmp/log4j_for_extract/ $war_file > /dev/null

So that duplicate files in the archive will overwrite by default instead of hanging at a user prompt for input, since stdout is redirected to /dev/null it is difficult to tell if it is hanging because it is waiting for a prompt answer or actually running.

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

No branches or pull requests

1 participant