Skip to content

Commit

Permalink
cmd/list: fix exit code when supplied both a cask and formula
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Jun 11, 2024
1 parent 4d12daf commit 617a8d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/cmd/list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def run
system_command! "find", args: casks.map(&:caskroom_path) + find_args, print_stdout: true if casks.present?
else
kegs.each { |keg| PrettyListing.new keg } if kegs.present?
list_casks if casks.present?
Cask::List.list_casks(*casks, one: args.public_send(:"1?")) if casks.present?
end
end
end
Expand Down

0 comments on commit 617a8d1

Please sign in to comment.