Skip to content

Commit

Permalink
Merge pull request #17442 from Homebrew/list_exit_codes
Browse files Browse the repository at this point in the history
cmd/list: fix exit codes.
  • Loading branch information
MikeMcQuaid committed Jun 6, 2024
2 parents 3060de4 + cec4e3f commit f6b16a1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Library/Homebrew/cmd/list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,7 @@ def filtered_list
Formula.racks
else
racks = args.named.map { |n| Formulary.to_rack(n) }
racks.select do |rack|
Homebrew.failed = true unless rack.exist?
rack.exist?
end
racks.select(&:exist?)
end
if args.pinned?
pinned_versions = {}
Expand All @@ -194,7 +191,6 @@ def list_casks
Cask::Caskroom.casks
else
filtered_args = args.named.dup.delete_if do |n|
Homebrew.failed = true unless Cask::Caskroom.path.join(n).exist?
!Cask::Caskroom.path.join(n).exist?
end
# NamedAargs subclasses array
Expand Down

0 comments on commit f6b16a1

Please sign in to comment.