Skip to content

Commit

Permalink
Merge pull request Homebrew#2697 from mistydemeo/cask_fix_cabextract
Browse files Browse the repository at this point in the history
cabextract: WARNING lines aren't fatal
  • Loading branch information
mistydemeo authored May 31, 2017
2 parents 1765062 + 0c1186f commit f9e8d84
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Library/Homebrew/cask/lib/hbc/container/cab.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ module Hbc
class Container
class Cab < Base
def self.me?(criteria)
cabextract = which("cabextract")

criteria.magic_number(/^(MSCF|MZ)/n) &&
!cabextract.nil? &&
criteria.command.run(cabextract, args: ["-t", "--", criteria.path.to_s]).stderr.empty?
criteria.magic_number(/^(MSCF|MZ)/n)
end

def extract
Expand Down

0 comments on commit f9e8d84

Please sign in to comment.