Skip to content

Commit

Permalink
Merge pull request #17467 from Homebrew/cask_taps_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid authored Jun 11, 2024
2 parents a5ce9e9 + 616646a commit 7b604c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/diagnostic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ def check_cask_taps

taps = (Tap.to_a + [CoreCaskTap.instance]).uniq

add_info "Homebrew Cask Taps:", taps.filter_map do |tap|
taps_info = taps.filter_map do |tap|
cask_count = begin
tap.cask_files.count
rescue
Expand All @@ -956,6 +956,7 @@ def check_cask_taps

"#{tap.path} (#{Utils.pluralize("cask", cask_count, include_count: true)})"
end
add_info "Homebrew Cask Taps:", taps_info

taps_string = Utils.pluralize("tap", error_tap_paths.count)
"Unable to read from cask #{taps_string}: #{error_tap_paths.to_sentence}" if error_tap_paths.present?
Expand Down

0 comments on commit 7b604c9

Please sign in to comment.