From b49fa78f9648a7cf8dec17cc7868d655a4c3eee8 Mon Sep 17 00:00:00 2001 From: Stephan Zeissler Date: Sun, 2 Sep 2012 13:02:16 +0200 Subject: [PATCH] Change sdk detection to same syntax used elsewhere. This wasn't working for me on leopard with ruby 1.9.2. Closes Homebrew/homebrew#14636. Signed-off-by: Adam Vandenberg --- Library/Homebrew/macos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb index cf80d1dd6f..dd88e122b2 100644 --- a/Library/Homebrew/macos.rb +++ b/Library/Homebrew/macos.rb @@ -75,7 +75,7 @@ module MacOS extend self opts << "#{Xcode.prefix}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX#{v}.sdk" # Xcode < 4.3 style opts << "/Developer/SDKs/MacOS#{v}.sdk" - opts.map{|a| Pathname.new(a) }.detect(&:directory?) + opts.map{|a| Pathname.new(a) }.detect { |p| p.directory? } end end