Merge pull request #6596 from reitermarkus/dmg

Fix `Dmg` detection.
This commit is contained in:
Markus Reiter 2019-10-14 11:28:20 +02:00 committed by GitHub
commit 9a857ccf9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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