aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/imagemagick.rb
diff options
context:
space:
mode:
authorJack Nagel2013-06-29 20:47:47 -0500
committerJack Nagel2013-06-29 20:47:58 -0500
commit6dd92456af11cf7f562467b56c3a5d68ef60d962 (patch)
treede03c51e942fb7cfa9b7ce1e74bac68558b23ddf /Library/Formula/imagemagick.rb
parenta23782b2d01f773dd0556985d839deb242779dff (diff)
downloadhomebrew-6dd92456af11cf7f562467b56c3a5d68ef60d962.tar.bz2
imagemagick: fix test on <= 10.6
Diffstat (limited to 'Library/Formula/imagemagick.rb')
-rw-r--r--Library/Formula/imagemagick.rb9
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