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:
parent
d1ce5bafc9
commit
f17289f708
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user