aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/upgrade.rb
diff options
context:
space:
mode:
authorNikolaus Wittenstein2013-09-26 11:19:09 -0400
committerAdam Vandenberg2013-09-26 22:54:51 -0700
commit7c7a3057af496178bfeb0472e509829562bdc3b2 (patch)
treef715630b2ba6a11d4d130715e40bf9023a824b53 /Library/Homebrew/cmd/upgrade.rb
parent0d739dd744ff32af1a171e24e188f3734d38add9 (diff)
downloadhomebrew-7c7a3057af496178bfeb0472e509829562bdc3b2.tar.bz2
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 #22854. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd/upgrade.rb')
-rw-r--r--Library/Homebrew/cmd/upgrade.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb
index 5b3d5a900..ed3529e98 100644
--- a/Library/Homebrew/cmd/upgrade.rb
+++ b/Library/Homebrew/cmd/upgrade.rb
@@ -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