Skip to content

Commit

Permalink
Merge pull request #432 from cho-m/remove-merged_output
Browse files Browse the repository at this point in the history
cmd/generate-analytics-api: remove merged_output
  • Loading branch information
Bo98 authored Mar 20, 2024
2 parents 8d055c2 + 4bbd62a commit 0f9a473
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/generate-analytics-api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,18 @@ def run_formula_analytics(*args)
puts "brew formula-analytics #{args.join(" ")}"

retries = 0
result = Utils.popen_read(HOMEBREW_BREW_FILE, "formula-analytics", *args)
result = Utils.popen_read(HOMEBREW_BREW_FILE, "formula-analytics", *args, err: :err)

while !$CHILD_STATUS.success? && retries < MAX_RETRIES
# Give InfluxDB some more breathing room.
sleep 4**(retries+2)

retries += 1
puts "Retrying #{args.join(" ")} (#{retries}/#{MAX_RETRIES})..."
result = Utils.popen_read(HOMEBREW_BREW_FILE, "formula-analytics", *args)
result = Utils.popen_read(HOMEBREW_BREW_FILE, "formula-analytics", *args, err: :err)
end

odie "`brew formula-analytics #{args.join(" ")}` failed: #{result.merged_output}" unless $CHILD_STATUS.success?
odie "`brew formula-analytics #{args.join(" ")}` failed: #{result}" unless $CHILD_STATUS.success?

result
end
Expand Down

0 comments on commit 0f9a473

Please sign in to comment.