mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 06:16:47 -06:00
Use the unarchiving ability built into the `ditto` utility, rather explicitly calling the `unzip` utility. Fixes caskroom/homebrew-fonts#90.
11 lines
282 B
Ruby
11 lines
282 B
Ruby
require 'tmpdir'
|
|
|
|
class Cask::Container::Zip < Cask::Container::Base
|
|
def self.me?(criteria)
|
|
criteria.file.include? 'compressed-encoding=application/zip;'
|
|
end
|
|
|
|
def extract
|
|
@command.run!('/usr/bin/ditto', :args => ['-xk', '--', @path, @cask.destination_path])
|
|
end
|
|
end
|