removes auto updates warning if greedy flag is included

This commit is contained in:
zdcthomas 2018-09-03 21:44:07 -06:00
parent 88bf60d589
commit f71f74da4a

View File

@ -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}" } * ", "