cmd/list: list casks only if one is installed

This commit is contained in:
Carlo Cabrera 2021-03-22 14:12:42 +00:00
parent 8538970567
commit a88d65acc7
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -119,7 +119,7 @@ module Homebrew
ohai "Formulae" if $stdout.tty? && !args.formula? ohai "Formulae" if $stdout.tty? && !args.formula?
safe_system "ls", *ls_args, HOMEBREW_CELLAR safe_system "ls", *ls_args, HOMEBREW_CELLAR
unless args.formula? if !args.formula? && Cask::Caskroom.casks.any?
if $stdout.tty? if $stdout.tty?
puts puts
ohai "Casks" ohai "Casks"