Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

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

@vijaysimhagk

Description

@vijaysimhagk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions