upgrade.rb: Fix plural_s when number = 0

Currently Upgrade prints out:
"Upgrading 0 outdated package, with result:"

This change makes it print:
"Upgrading 0 outdated packages, with result:"
correctly pluralizing "packages".

Closes Homebrew/homebrew#22854.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Nikolaus Wittenstein 2013-09-26 11:19:09 -04:00 committed by Adam Vandenberg
parent d1ce5bafc9
commit f17289f708

View File

@ -3,7 +3,7 @@ require 'cmd/outdated'
class Fixnum
def plural_s
if self > 1 then "s" else "" end
if self != 1 then "s" else "" end
end
end