aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorStephan Zeissler2012-09-02 13:02:16 +0200
committerAdam Vandenberg2012-09-02 11:05:03 -0700
commitb49fa78f9648a7cf8dec17cc7868d655a4c3eee8 (patch)
treea270b51df36ea3060dcc1661f66a549849d18ca8 /Library/Homebrew
parentc36f79c79a7ba49c396e9957b5ca167edfd78363 (diff)
downloadbrew-b49fa78f9648a7cf8dec17cc7868d655a4c3eee8.tar.bz2
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 <flangy@gmail.com>
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/macos.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb
index cf80d1dd6..dd88e122b 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