list: output only if installed casks are passed

Fixes #13139.
This commit is contained in:
EricFromCanada 2022-04-13 10:25:21 -04:00
parent d2b1a9d831
commit 8a7f082b30
No known key found for this signature in database
GPG Key ID: 179D9CDDDB814168

View File

@ -172,6 +172,8 @@ module Homebrew
!Cask::Caskroom.path.join(n).exist?
end.to_formulae_and_casks(only: :cask)
end
return if casks.blank?
Cask::Cmd::List.list_casks(
*casks,
one: args.public_send(:"1?"),