aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMarkus Reiter2016-11-14 16:49:25 +0100
committerGitHub2016-11-14 16:49:25 +0100
commitee143482e4323be29a60ee2965835a54eac2ace8 (patch)
tree0d41edd19d31e6a3193ea35376adc3fbf792cd58 /Library
parentc4c9c6bc0cea80eb6454d192808f318ddb651bf4 (diff)
parentff96f7ec269ffaed9e3fe769603ca77c935c340d (diff)
downloadbrew-ee143482e4323be29a60ee2965835a54eac2ace8.tar.bz2
Merge pull request #1504 from reitermarkus/exe-cab-containers
Fix detection of self-extracting `.exe` files.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cask/lib/hbc/container/cab.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/container/cab.rb b/Library/Homebrew/cask/lib/hbc/container/cab.rb
index 52c13402c..b3cf01452 100644
--- a/Library/Homebrew/cask/lib/hbc/container/cab.rb
+++ b/Library/Homebrew/cask/lib/hbc/container/cab.rb
@@ -8,7 +8,7 @@ module Hbc
def self.me?(criteria)
cabextract = which("cabextract")
- criteria.magic_number(/^MSCF/n) &&
+ criteria.magic_number(/^(MSCF|MZ)/n) &&
!cabextract.nil? &&
criteria.command.run(cabextract, args: ["-t", "--", criteria.path.to_s]).stderr.empty?
end