From 161104cae70f3207b247331d182dc47c0b8c8a06 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 28 Feb 2013 20:50:08 +0000 Subject: 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. --- Library/Homebrew/macos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} -- cgit v1.2.3