aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-06-05 02:34:28 +0200
committerBaptiste Fontaine2015-06-05 19:32:23 +0200
commitd87f9d4359f4a6132504f3923cc4c71cdb86e8de (patch)
treeec54de5fcfc4673397aaa9477488c1aa963d1651 /Library/Homebrew
parentdf7dd903cd353a9f404da5d6321037c5cb4bd21d (diff)
downloadbrew-d87f9d4359f4a6132504f3923cc4c71cdb86e8de.tar.bz2
singular/plural phrasing in audit report
Closes Homebrew/homebrew#40395. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/audit.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index a31528a0f..6ebe1af62 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -46,7 +46,9 @@ module Homebrew
end
unless problem_count.zero?
- ofail "#{problem_count} problems in #{formula_count} formulae"
+ problems = "problem" + plural(problem_count)
+ formulae = "formula" + plural(formula_count, "e")
+ ofail "#{problem_count} #{problems} in #{formula_count} #{formulae}"
end
end
end