Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Fix jq parsing of queue status
Browse files Browse the repository at this point in the history
  • Loading branch information
major committed Sep 14, 2023
1 parent f823523 commit 2ff3af1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ sleep 10

COUNTER=0
while true; do
composer-cli --json compose info "${COMPOSE_ID}" | tee compose_info.json >/dev/null
COMPOSE_STATUS=$(jq -r ".body.queue_status" compose_info.json)
composer-cli --json compose info "${COMPOSE_ID}" | tee compose_info.json
COMPOSE_STATUS=$(jq -r ".[].body.queue_status" compose_info.json)

# Print a status line once per minute.
if [ $((COUNTER % 60)) -eq 0 ]; then
Expand Down

0 comments on commit 2ff3af1

Please sign in to comment.