From e3f8939cff48dd59f267792077282110a0616c66 Mon Sep 17 00:00:00 2001 From: "L. E. Segovia" <13498015+amyspark@users.noreply.github.com> Date: Tue, 15 Oct 2019 12:33:42 +0000 Subject: [PATCH] zip: overwrite existing files Fixes homebrew/homebrew-cask#69879 --- Library/Homebrew/unpack_strategy/zip.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/unpack_strategy/zip.rb b/Library/Homebrew/unpack_strategy/zip.rb index f7da620192..80eee72886 100644 --- a/Library/Homebrew/unpack_strategy/zip.rb +++ b/Library/Homebrew/unpack_strategy/zip.rb @@ -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