Merge pull request #15432 from reitermarkus/upgrade-bug-message

Don't special-case message for outdated casks that aren't installed.
This commit is contained in:
Markus Reiter 2023-05-16 10:57:45 +02:00 committed by GitHub
commit fab2f20451
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,7 @@ module Cask
caught_exceptions = []
upgradable_casks = outdated_casks.map do |c|
if !c.installed? && c.tap.to_s == "homebrew/cask" && Homebrew::API::Cask.all_casks.key?(c.token)
unless c.installed?
odie <<~EOS
The cask '#{c.token}' was affected by a bug and cannot be upgraded as-is. To fix this, run:
brew reinstall --cask --force #{c.token}