Set Homebrew.failed = true to get correct status code

This commit is contained in:
Mohammad Zain Abbas 2022-09-26 19:37:46 +02:00
parent e26da060f0
commit e3cab15e93

View File

@ -309,6 +309,7 @@ module Homebrew
end
end
end.compact_blank
Homebrew.failed = true if resource_version_info.any? { |info| info[:status] == "error" }
end
if latest.blank?
@ -501,7 +502,6 @@ module Homebrew
info.each do |r_info|
if r_info[:status] && r_info[:messages]
SkipConditions.print_skip_information(r_info)
Homebrew.failed = true
else
print_latest_version(
r_info,