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.
This commit is contained in:
parent
aca48deda0
commit
161104cae7
@ -39,7 +39,7 @@ module MacOS extend self
|
|||||||
xcrun_path = unless Xcode.bad_xcode_select_path?
|
xcrun_path = unless Xcode.bad_xcode_select_path?
|
||||||
path = `/usr/bin/xcrun -find #{tool} 2>/dev/null`.chomp
|
path = `/usr/bin/xcrun -find #{tool} 2>/dev/null`.chomp
|
||||||
# If xcrun finds a superenv tool then discard the result.
|
# 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
|
end
|
||||||
|
|
||||||
paths = %W[#{xcrun_path}
|
paths = %W[#{xcrun_path}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user