From ff96f7ec269ffaed9e3fe769603ca77c935c340d Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 14 Nov 2016 15:30:48 +0100 Subject: [PATCH] Fix detection of self-extracting `.exe` files. --- Library/Homebrew/cask/lib/hbc/container/cab.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/lib/hbc/container/cab.rb b/Library/Homebrew/cask/lib/hbc/container/cab.rb index 52c13402ce..b3cf01452a 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