aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMax Howell2012-02-21 10:32:48 +0000
committerMax Howell2012-02-21 10:33:03 +0000
commit61a8bd9ca0d30c571212f534e4262715fba72e49 (patch)
tree6fc05c1f750a73b892a221132e29db1e684ac518 /Library/Homebrew/cmd
parenta7ade739dcba21a7fcaf36a9bf016e1bbea04286 (diff)
downloadbrew-61a8bd9ca0d30c571212f534e4262715fba72e49.tar.bz2
Don't hang if xcode-select -print-path is "/"
Introducing MacOS.xctools_fucked?. Refs Homebrew/homebrew#10293.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/--env.rb2
1 files changed, 1 insertions, 1 deletions
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