cmd/upgrade: only ask about cask upgrade with --ask

This commit is contained in:
Bevan Kay 2025-05-09 09:42:15 +10:00
parent c1d29f65a5
commit 1c138a613b
No known key found for this signature in database
GPG Key ID: C55CB024B5314B57

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,