doctor: restore newlines between checks
Closes Homebrew/homebrew#18060.
This commit is contained in:
parent
261ca7aa6a
commit
3320b15609
@ -1111,13 +1111,16 @@ module Homebrew extend self
|
|||||||
ARGV.named
|
ARGV.named
|
||||||
end.select{ |method| method =~ /^check_/ }.reverse.uniq.reverse
|
end.select{ |method| method =~ /^check_/ }.reverse.uniq.reverse
|
||||||
|
|
||||||
|
first_warning = true
|
||||||
methods.each do |method|
|
methods.each do |method|
|
||||||
out = checks.send(method)
|
out = checks.send(method)
|
||||||
unless out.nil? or out.empty?
|
unless out.nil? or out.empty?
|
||||||
lines = out.to_s.split('\n')
|
lines = out.to_s.split('\n')
|
||||||
|
puts unless first_warning
|
||||||
opoo lines.shift
|
opoo lines.shift
|
||||||
Homebrew.failed = true
|
Homebrew.failed = true
|
||||||
puts lines
|
puts lines
|
||||||
|
first_warning = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user