aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2012-07-25 22:54:44 +0100
committerMike McQuaid2012-07-25 22:54:44 +0100
commit450dcf75dc47da43e7e8276b2898a01d25418d13 (patch)
treef79b3a4f5983f88736b600d5bfb70360ebb08926 /Library
parent74839417ea8bf7ebfabe217025307b07fc5fa393 (diff)
downloadbrew-450dcf75dc47da43e7e8276b2898a01d25418d13.tar.bz2
Fix brew doctor warnings and spurious newline.
Fixes the problems discussed in 34c970 to ensure that `brew doctor` does not look like it is broken on user setup problems but still returns a sensible exit code for e.g. BrewBot.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 25c5ec7d2..922c9ca70 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -936,9 +936,9 @@ module Homebrew extend self
checks.methods.select{ |method| method =~ /^check_/ }.sort.each do |method|
out = checks.send(method)
unless out.nil? or out.empty?
- puts unless Homebrew.failed?
lines = out.to_s.split('\n')
- ofail lines.shift
+ opoo lines.shift
+ Homebrew.failed = true
puts lines
end
end