diff options
| author | Max Howell | 2012-02-17 13:34:06 +0000 |
|---|---|---|
| committer | Max Howell | 2012-02-17 13:34:06 +0000 |
| commit | 607c13c32bcae86708101edeed32b7c0478fd5ea (patch) | |
| tree | 879fcac493d54e58d571c571212faeaa0306fd58 /Library/Homebrew/cmd | |
| parent | 30cbb25147416620ff64e6ba6d047d5304dff25b (diff) | |
| download | brew-607c13c32bcae86708101edeed32b7c0478fd5ea.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}" |
