diff options
| author | Adam Vandenberg | 2014-05-26 11:19:00 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-26 18:33:31 -0700 |
| commit | e2ed77e058060ec6da080ed492ba591e09abbf0e (patch) | |
| tree | c64ec9da7f46d9def0f67b64c0e84e0225ccab3a /Library/Homebrew/utils.rb | |
| parent | d31db8b415ab26798dc71b77009c3a0149223de0 (diff) | |
| download | homebrew-e2ed77e058060ec6da080ed492ba591e09abbf0e.tar.bz2 | |
pluralize formulae in tap/untap
Closes #28560.
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index ac84c1602..36b30d857 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -78,6 +78,10 @@ def pretty_duration s return "%.1f minutes" % (s/60) end +def plural n, s="s" + (n == 1) ? "" : s +end + def interactive_shell f=nil unless f.nil? ENV['HOMEBREW_DEBUG_PREFIX'] = f.prefix |
