brew --env: fix path to xcrun

Fixes Homebrew/homebrew#10327.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-02-19 20:31:25 -06:00
parent a23357372e
commit 6af4cc9f27

View File

@ -19,7 +19,7 @@ module Homebrew extend self
if value
results = value
if value =~ /^[^\s]*xcrun (.*)/
path = `#{MacOS.xcrun} -find #{$1}`
path = `/usr/bin/xcrun -find #{$1}`
results += " => #{path}"
elsif File.exists? value and File.symlink? value
results += " => #{Pathname.new(value).realpath}"