Merge pull request #19918 from Homebrew/cask-upgrade-ask

cmd/upgrade: only ask about cask upgrade with `--ask`
This commit is contained in:
Bevan Kay 2025-05-09 01:20:36 +00:00 committed by GitHub
commit 4312f3a729
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -261,7 +261,7 @@ module Homebrew
def upgrade_outdated_casks(casks)
return false if args.formula?
Install.ask_casks casks
Install.ask_casks casks if args.ask?
Cask::Upgrade.upgrade_casks(
*casks,