aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2013-02-28 20:50:08 +0000
committerMike McQuaid2013-02-28 20:53:38 +0000
commit161104cae70f3207b247331d182dc47c0b8c8a06 (patch)
treee674de4037b45f89bd250faedff5e46d8b064647 /Library/Homebrew
parentaca48deda0f7bbb9831291dbf47ed3c8e4ae2b9c (diff)
downloadbrew-161104cae70f3207b247331d182dc47c0b8c8a06.tar.bz2
Exclude all located superenv paths.
The previous fix only looked at the current Homebrew but we should discard hits from other installations of Homebrew too.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/macos.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb
index c01b30981..14715499f 100644
--- a/Library/Homebrew/macos.rb
+++ b/Library/Homebrew/macos.rb
@@ -39,7 +39,7 @@ module MacOS extend self
xcrun_path = unless Xcode.bad_xcode_select_path?
path = `/usr/bin/xcrun -find #{tool} 2>/dev/null`.chomp
# If xcrun finds a superenv tool then discard the result.
- path unless path.include?(HOMEBREW_REPOSITORY/"Library/ENV")
+ path unless path.include?("Library/ENV")
end
paths = %W[#{xcrun_path}