From 607c13c32bcae86708101edeed32b7c0478fd5ea Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 17 Feb 2012 13:34:06 +0000 Subject: Find xcrun if user doesn't ever install Xcode 4.3 helper tools --- Library/Homebrew/cmd/--env.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/cmd') 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}" -- cgit v1.2.3