cmd/list: fix exit code when supplied both a cask and formula
This commit is contained in:
parent
4d12dafeb7
commit
617a8d1627
@ -153,7 +153,7 @@ module Homebrew
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user