diff --git a/Library/Homebrew/cask/cmd/upgrade.rb b/Library/Homebrew/cask/cmd/upgrade.rb index 7218a8d199..d856f236b0 100644 --- a/Library/Homebrew/cask/cmd/upgrade.rb +++ b/Library/Homebrew/cask/cmd/upgrade.rb @@ -25,8 +25,8 @@ module Hbc oh1 "No Casks to upgrade" return end - - ohai "Casks with `auto_updates` or `version :latest` will not be upgraded" if args.empty? + + ohai "Casks with `auto_updates` or `version :latest` will not be upgraded" if args.empty? && !greedy? oh1 "Upgrading #{Formatter.pluralize(outdated_casks.length, "outdated package")}, with result:" puts outdated_casks.map { |f| "#{f.full_name} #{f.version}" } * ", "