From 6b2340fd92bbd3c27aa4e5f79e5ee474382c171f Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 21 Feb 2012 10:32:48 +0000 Subject: Don't hang if xcode-select -print-path is "/" Introducing MacOS.xctools_fucked?. Refs #10293.--- Library/Homebrew/cmd/--env.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/--env.rb b/Library/Homebrew/cmd/--env.rb index d020ac0ac..9f5f4bb7a 100644 --- a/Library/Homebrew/cmd/--env.rb +++ b/Library/Homebrew/cmd/--env.rb @@ -18,7 +18,7 @@ module Homebrew extend self value = env[k] if value results = value - if value =~ /^[^\s]*xcrun (.*)/ + if value =~ %r{/usr/bin/xcrun (.*)} path = `/usr/bin/xcrun -find #{$1}` results += " => #{path}" elsif File.exists? value and File.symlink? value -- cgit v1.2.3