zip: overwrite existing files

Fixes homebrew/homebrew-cask#69879
This commit is contained in:
L. E. Segovia 2019-10-15 12:33:42 +00:00
parent 8fa65aaabf
commit e3f8939cff
No known key found for this signature in database
GPG Key ID: 2EA9E1FDA820A9F1

View File

@ -23,7 +23,7 @@ module UnpackStrategy
def extract_to_dir(unpack_dir, basename:, verbose:)
quiet_flags = verbose ? [] : ["-qq"]
result = system_command! "unzip",
args: [*quiet_flags, path, "-d", unpack_dir],
args: [*quiet_flags, "-o", path, "-d", unpack_dir],
verbose: verbose,
print_stderr: false