diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/imagemagick.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/Formula/imagemagick.rb b/Library/Formula/imagemagick.rb index 748fc74e3..e8bbf3274 100644 --- a/Library/Formula/imagemagick.rb +++ b/Library/Formula/imagemagick.rb @@ -97,7 +97,12 @@ class Imagemagick < Formula end test do - system "#{bin}/identify", \ - "/System/Library/Frameworks/SecurityInterface.framework/Versions/A/Resources/Key_Large.png" + if MacOS.version > :snow_leopard + file = 'Key_Large.png' + else + file = 'Key Large.tif' + end + system "#{bin}/identify", + "/System/Library/Frameworks/SecurityInterface.framework/Versions/A/Resources/#{file}" end end |
