diff options
| author | L. E. Segovia | 2017-11-22 00:45:29 +0000 |
|---|---|---|
| committer | L. E. Segovia | 2017-11-22 00:45:29 +0000 |
| commit | c9b5de4cabac58b64bf14537d8281f00a540767a (patch) | |
| tree | b96355c21592d3e002b26b27cf2caffa7523affc /Library/Homebrew/cask/lib | |
| parent | 8ee6ac26130c74fd102d4e77e24f2c3b6aa86adc (diff) | |
| download | brew-c9b5de4cabac58b64bf14537d8281f00a540767a.tar.bz2 | |
Output message if no Casks are outdated
Diffstat (limited to 'Library/Homebrew/cask/lib')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli/upgrade.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb b/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb index 993ec6ac6..087a30c03 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb @@ -14,7 +14,10 @@ module Hbc def run outdated_casks = casks(alternative: -> { Hbc.installed }).select { |cask| cask.outdated?(greedy?) } - return if outdated_casks.empty? + if outdated_casks.empty? + oh1 "No Casks to upgrade" + return + end oh1 "Upgrading #{Formatter.pluralize(outdated_casks.length, "outdated package")}, with result:" puts outdated_casks.map { |f| "#{f.full_name} #{f.version}" } * ", " |
