brew-audit: do not abort after first brew with errors
This commit is contained in:
parent
846b6cb91b
commit
cf13c6ddf3
@ -246,6 +246,8 @@ end
|
|||||||
|
|
||||||
module Homebrew extend self
|
module Homebrew extend self
|
||||||
def audit
|
def audit
|
||||||
|
errors = false
|
||||||
|
|
||||||
ff.each do |f|
|
ff.each do |f|
|
||||||
problems = []
|
problems = []
|
||||||
problems += audit_formula_instance f
|
problems += audit_formula_instance f
|
||||||
@ -274,11 +276,13 @@ module Homebrew extend self
|
|||||||
problems += audit_formula_options(f, text_without_patch)
|
problems += audit_formula_options(f, text_without_patch)
|
||||||
|
|
||||||
unless problems.empty?
|
unless problems.empty?
|
||||||
|
errors = true
|
||||||
puts "#{f.name}:"
|
puts "#{f.name}:"
|
||||||
puts problems * "\n"
|
puts problems * "\n"
|
||||||
puts
|
puts
|
||||||
exit 1
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
exit 1 if errors
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user