diff options
| author | Max Howell | 2012-02-17 13:34:06 +0000 |
|---|---|---|
| committer | Max Howell | 2012-02-17 13:34:06 +0000 |
| commit | 17af67977e2c4bb16fb54c69564d85ed34e7afa8 (patch) | |
| tree | 885aa37db385d2aa6e79a28c5f1e8df3d0e95835 /Library/Homebrew/cmd | |
| parent | 88cc0141b8cf5990c5d4fdee87106e8541f406bc (diff) | |
| download | homebrew-17af67977e2c4bb16fb54c69564d85ed34e7afa8.tar.bz2 | |
Find xcrun if user doesn't ever install Xcode 4.3 helper tools
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/--env.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/--env.rb b/Library/Homebrew/cmd/--env.rb index 7d9796061..f4baefdab 100644 --- a/Library/Homebrew/cmd/--env.rb +++ b/Library/Homebrew/cmd/--env.rb @@ -18,8 +18,8 @@ module Homebrew extend self value = env[k] if value results = value - if value =~ %r{^/usr/bin/xcrun (.*)} - path = `/usr/bin/xcrun -find #{$1}` + if value =~ /^[^\s]*xcrun (.*)/ + path = `#{MacOS.xcrun} -find #{$1}` results += " => #{path}" elsif File.exists? value and File.symlink? value results += " => #{Pathname.new(value).realpath}" |
