Set Homebrew.failed = true to get correct status code
This commit is contained in:
parent
e26da060f0
commit
e3cab15e93
@ -309,6 +309,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end.compact_blank
|
end.compact_blank
|
||||||
|
Homebrew.failed = true if resource_version_info.any? { |info| info[:status] == "error" }
|
||||||
end
|
end
|
||||||
|
|
||||||
if latest.blank?
|
if latest.blank?
|
||||||
@ -501,7 +502,6 @@ module Homebrew
|
|||||||
info.each do |r_info|
|
info.each do |r_info|
|
||||||
if r_info[:status] && r_info[:messages]
|
if r_info[:status] && r_info[:messages]
|
||||||
SkipConditions.print_skip_information(r_info)
|
SkipConditions.print_skip_information(r_info)
|
||||||
Homebrew.failed = true
|
|
||||||
else
|
else
|
||||||
print_latest_version(
|
print_latest_version(
|
||||||
r_info,
|
r_info,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user