Skip to content

Commit

Permalink
Merge pull request #4897 from reitermarkus/__MACOSX
Browse files Browse the repository at this point in the history
Remove `__MACOSX` directory after unzipping.
  • Loading branch information
reitermarkus authored Sep 14, 2018
2 parents 2635160 + 81cbab8 commit 614ac36
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Library/Homebrew/unpack_strategy/zip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ def self.can_extract?(path)

def extract_to_dir(unpack_dir, basename:, verbose:)
quiet_flags = verbose ? [] : ["-qq"]
system_command! "unzip",
args: [*quiet_flags, path, "-d", unpack_dir],
verbose: verbose,
print_stderr: false
result = system_command! "unzip",
args: [*quiet_flags, path, "-d", unpack_dir],
verbose: verbose,
print_stderr: false

FileUtils.rm_rf unpack_dir/"__MACOSX"

result
end
end
end
Expand Down

0 comments on commit 614ac36

Please sign in to comment.