diff options
| author | Max Howell | 2012-02-21 10:32:48 +0000 |
|---|---|---|
| committer | Max Howell | 2012-02-21 10:33:03 +0000 |
| commit | 61a8bd9ca0d30c571212f534e4262715fba72e49 (patch) | |
| tree | 6fc05c1f750a73b892a221132e29db1e684ac518 /Library/Homebrew/extend | |
| parent | a7ade739dcba21a7fcaf36a9bf016e1bbea04286 (diff) | |
| download | brew-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/extend')
| -rw-r--r-- | Library/Homebrew/extend/ENV.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index 0373bced1..2f2a0d90a 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -94,7 +94,7 @@ module HomebrewEnvExtension def xcrun tool if File.executable? "/usr/bin/#{tool}" "/usr/bin/#{tool}" - elsif system "/usr/bin/xcrun -find #{tool} 2>1 1>/dev/null" + elsif not MacOS.xctools_fucked? and system "/usr/bin/xcrun -find #{tool} 2>1 1>/dev/null" # xcrun was provided first with Xcode 4.3 and allows us to proxy # tool usage thus avoiding various bugs "/usr/bin/xcrun #{tool}" |
