Skip to content

Commit

Permalink
Remove shellcheck false positive error
Browse files Browse the repository at this point in the history
  • Loading branch information
sasadangelo committed Aug 29, 2023
1 parent ed9b3f2 commit d7f87fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions postgres-appliance/scripts/patroni_wait.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ if [ $# -gt 0 ]; then
options="$options --cacert $SSL_RESTAPI_CA_FILE"
fi

# shellcheck disable=SC2086
while [ "$(curl -so /dev/null -w '%{http_code}' $options "$protocol://localhost:$PORT/$ROLE")" != "200" ]; do
[ -n "$TIMEOUT" ] && [ "$CUTOFF" -le "$(date +%s)" ] && exit 2
sleep "$INTERVAL"
Expand Down

0 comments on commit d7f87fc

Please sign in to comment.