From cc234d1948618c026184c999848a44464f38fc22 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 14 Oct 2019 10:44:52 +0200 Subject: [PATCH] Fix `Dmg` detection. --- Library/Homebrew/unpack_strategy/dmg.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/unpack_strategy/dmg.rb b/Library/Homebrew/unpack_strategy/dmg.rb index 1df8292aa0..f6d34c4205 100644 --- a/Library/Homebrew/unpack_strategy/dmg.rb +++ b/Library/Homebrew/unpack_strategy/dmg.rb @@ -106,7 +106,7 @@ module UnpackStrategy end def self.can_extract?(path) - stdout, _, status = system_command("hdiutil", args: ["imageinfo", path], print_stderr: false) + stdout, _, status = system_command("hdiutil", args: ["imageinfo", "-format", path], print_stderr: false) status.success? && !stdout.empty? end