Fixes Homebrew/homebrew#10369; Doctor output is unreadable.
This commit is contained in:
parent
bb6816dc4a
commit
8cbaca5b76
@ -350,8 +350,9 @@ def check_user_path
|
||||
# only show the doctor message if there are any conflicts
|
||||
# rationale: a default install should not trigger any brew doctor messages
|
||||
conflicts = Dir["#{HOMEBREW_PREFIX}/bin/*"].
|
||||
select {|fn| File.exist? "/usr/bin/#{File.basename fn}"}.
|
||||
map {|fn| File.basename fn}
|
||||
map{ |fn| File.basename fn }.
|
||||
select{ |bn| File.exist? "/usr/bin/#{bn}" }
|
||||
|
||||
if conflicts.size
|
||||
ohai "/usr/bin occurs before #{HOMEBREW_PREFIX}/bin"
|
||||
puts <<-EOS.undent
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user