Merge pull request #2697 from mistydemeo/cask_fix_cabextract

cabextract: WARNING lines aren't fatal
This commit is contained in:
Misty De Meo 2017-05-31 08:23:31 -07:00 committed by GitHub
commit f9e8d84301

View File

@ -6,11 +6,7 @@ module Hbc
class Container class Container
class Cab < Base class Cab < Base
def self.me?(criteria) def self.me?(criteria)
cabextract = which("cabextract") criteria.magic_number(/^(MSCF|MZ)/n)
criteria.magic_number(/^(MSCF|MZ)/n) &&
!cabextract.nil? &&
criteria.command.run(cabextract, args: ["-t", "--", criteria.path.to_s]).stderr.empty?
end end
def extract def extract