cmd/list: fix exit code when supplied both a cask and formula

This commit is contained in:
Bo Anderson 2024-06-11 03:31:05 +01:00
parent 4d12dafeb7
commit 617a8d1627
No known key found for this signature in database

View File

@ -153,7 +153,7 @@ module Homebrew
system_command! "find", args: casks.map(&:caskroom_path) + find_args, print_stdout: true if casks.present? system_command! "find", args: casks.map(&:caskroom_path) + find_args, print_stdout: true if casks.present?
else else
kegs.each { |keg| PrettyListing.new keg } if kegs.present? 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 end
end end