aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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