aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-02-21 15:50:35 +0000
committerMax Howell2012-02-21 15:50:35 +0000
commit8cbaca5b7661c2d48226cc2adf8932cd7cf0d2b9 (patch)
tree483836a896a241de795d1f61e3afc345af3b5bc2 /Library
parentbb6816dc4a2f6606cb024ec39eba333c670f484f (diff)
downloadbrew-8cbaca5b7661c2d48226cc2adf8932cd7cf0d2b9.tar.bz2
Fixes Homebrew/homebrew#10369; Doctor output is unreadable.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index b1f190bba..898f58aad 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -350,15 +350,16 @@ 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
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:
- #{conflicts * "\n "}
+ #{conflicts * "\n "}
Consider editing your .bashrc to put #{HOMEBREW_PREFIX}/bin
ahead of /usr/bin in your PATH.