diagnostic: fix cask taps doctor output.
A fix for the previous fix broke the fix.
This commit is contained in:
parent
a1130996f5
commit
616646a1df
@ -945,7 +945,7 @@ module Homebrew
|
|||||||
|
|
||||||
taps = (Tap.to_a + [CoreCaskTap.instance]).uniq
|
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
|
cask_count = begin
|
||||||
tap.cask_files.count
|
tap.cask_files.count
|
||||||
rescue
|
rescue
|
||||||
@ -956,6 +956,7 @@ module Homebrew
|
|||||||
|
|
||||||
"#{tap.path} (#{Utils.pluralize("cask", cask_count, include_count: true)})"
|
"#{tap.path} (#{Utils.pluralize("cask", cask_count, include_count: true)})"
|
||||||
end
|
end
|
||||||
|
add_info "Homebrew Cask Taps:", taps_info
|
||||||
|
|
||||||
taps_string = Utils.pluralize("tap", error_tap_paths.count)
|
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?
|
"Unable to read from cask #{taps_string}: #{error_tap_paths.to_sentence}" if error_tap_paths.present?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user