From eb1271304f034d8c7da7fe55d1d5dc6982a2a780 Mon Sep 17 00:00:00 2001 From: commitay Date: Thu, 12 Jul 2018 15:53:00 +1000 Subject: [PATCH] cask upgrade: add message about `auto_updates` and `:latest` --- Library/Homebrew/cask/lib/hbc/cli/upgrade.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb b/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb index 392b87575b..fc4f24ac09 100644 --- a/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb +++ b/Library/Homebrew/cask/lib/hbc/cli/upgrade.rb @@ -26,6 +26,7 @@ module Hbc return end + ohai "Casks with `auto_updates` or `version :latest` will not be upgraded" if args.empty? oh1 "Upgrading #{Formatter.pluralize(outdated_casks.length, "outdated package")}, with result:" puts outdated_casks.map { |f| "#{f.full_name} #{f.version}" } * ", "