Merge pull request #8534 from reitermarkus/cask-conflict-warning

Don't output warning to `stdout`.
This commit is contained in:
Markus Reiter 2020-08-29 21:05:28 +02:00 committed by GitHub
commit 747223e272
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,7 +180,7 @@ module Homebrew
def warn_if_cask_conflicts(ref, loaded_type)
cask = Cask::CaskLoader.load ref
puts "Treating #{ref} as a #{loaded_type}. For the cask, use #{cask.tap.name}/#{cask.token}"
opoo "Treating #{ref} as a #{loaded_type}. For the cask, use #{cask.tap.name}/#{cask.token}"
rescue Cask::CaskUnavailableError
# No ref conflict with a cask, do nothing
end