aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-05-31 13:23:42 -0700
committerAdam Vandenberg2011-05-31 13:32:47 -0700
commitcf13c6ddf399869b4e6b04222bc161323f3c2796 (patch)
treee463a5a4093e4df58b6e533909d0ae3edaf92e2d /Library
parent846b6cb91b016b8ab4e96680145c9a74b002616c (diff)
downloadbrew-cf13c6ddf399869b4e6b04222bc161323f3c2796.tar.bz2
brew-audit: do not abort after first brew with errors
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/cmd/audit.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index a3d120acd..a37317d99 100755
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -246,6 +246,8 @@ end
module Homebrew extend self
def audit
+ errors = false
+
ff.each do |f|
problems = []
problems += audit_formula_instance f
@@ -274,11 +276,13 @@ module Homebrew extend self
problems += audit_formula_options(f, text_without_patch)
unless problems.empty?
+ errors = true
puts "#{f.name}:"
puts problems * "\n"
puts
- exit 1
end
end
+
+ exit 1 if errors
end
end