Skip to content

Commit

Permalink
shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Mar 6, 2024
1 parent b984554 commit 1581914
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/wait-for-couch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ maxWait="${1:-0}"
printf "Waiting for host to start on %s..." "$COUCH_HOST"

WAITING=0
until [ '200' = "$(curl -s -o /dev/null -w '%{http_code}' ${COUCH_HOST})" ]; do
until [[ '200' = "$(curl -s -o /dev/null -w '%{http_code}' "$COUCH_HOST")" ]]; do
((WAITING=WAITING+1))
if [ $WAITING -eq $maxWait ]; then
if [ $WAITING -eq "$maxWait" ]; then
printf '\nHost failed to start\n'
exit 1
fi
Expand Down

0 comments on commit 1581914

Please sign in to comment.