Merge pull request #2697 from mistydemeo/cask_fix_cabextract
cabextract: WARNING lines aren't fatal
This commit is contained in:
commit
f9e8d84301
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user