Merge pull request #4814 from zdcthomas/upgrade_greedy_verbose_response

removes auto updates warning if greedy flag is included
This commit is contained in:
Mike McQuaid 2018-09-06 09:07:59 +01:00 committed by GitHub
commit 0770e0bb67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ module Hbc
return return
end 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:" oh1 "Upgrading #{Formatter.pluralize(outdated_casks.length, "outdated package")}, with result:"
puts outdated_casks.map { |f| "#{f.full_name} #{f.version}" } * ", " puts outdated_casks.map { |f| "#{f.full_name} #{f.version}" } * ", "