aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMax Howell2012-02-17 12:12:05 +0000
committerMax Howell2012-02-17 13:08:55 +0000
commitba61d3013a9fa50e0af1f0c9fa508582fa55e740 (patch)
tree72fe2ef118f957bddeba41fd5e1dd9fee06aa3b5 /Library/Homebrew/extend
parent856fe669e2fa123ef97b7a27afd216c0c26b1818 (diff)
downloadbrew-ba61d3013a9fa50e0af1f0c9fa508582fa55e740.tar.bz2
Work with Xcode 4.3 if user didn't install helper tools
We ask Spotlight to find Xcode and use that path, neat right?
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ENV.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb
index 8a599fa81..b059927a6 100644
--- a/Library/Homebrew/extend/ENV.rb
+++ b/Library/Homebrew/extend/ENV.rb
@@ -96,7 +96,7 @@ module HomebrewEnvExtension
else
# otherwise lets try and figure it out ourselves
fn = "#{MacOS.dev_tools_path}/#{tool}"
- if File.file? fn
+ if File.executable? fn
fn
else
nil