Skip to content

Commit

Permalink
list: output only if installed casks are passed
Browse files Browse the repository at this point in the history
Fixes #13139.
  • Loading branch information
EricFromCanada committed Apr 13, 2022
1 parent e1c1157 commit 75d8d88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Library/Homebrew/cmd/list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ def list_casks(args:)
!Cask::Caskroom.path.join(n).exist?
end.to_formulae_and_casks(only: :cask)
end
return if casks.empty?

Cask::Cmd::List.list_casks(
*casks,
one: args.public_send(:"1?"),
Expand Down

0 comments on commit 75d8d88

Please sign in to comment.