mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
10 lines
333 B
Ruby
10 lines
333 B
Ruby
![]() |
module UnpackStrategy
|
||
|
class Zip
|
||
|
def extract_to_dir(unpack_dir, basename:, verbose:)
|
||
|
# `ditto` keeps Finder attributes intact and does not skip volume labels
|
||
|
# like `unzip` does, which can prevent disk images from being unzipped.
|
||
|
system_command! "ditto", args: ["-x", "-k", path, unpack_dir]
|
||
|
end
|
||
|
end
|
||
|
end
|