From f610486fcb8635c139e7ef00574ca7ba0005076e Mon Sep 17 00:00:00 2001 From: cventastic Date: Thu, 7 Apr 2022 13:42:11 +0200 Subject: [PATCH] missing space --- haproxy/polygon-healthcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haproxy/polygon-healthcheck.sh b/haproxy/polygon-healthcheck.sh index af791e41..db17d2c3 100755 --- a/haproxy/polygon-healthcheck.sh +++ b/haproxy/polygon-healthcheck.sh @@ -20,6 +20,6 @@ pokt_blockheight=$(curl -s -X POST -H "Content-Type: application/json" -m 2 -d ' peers=$(curl -s -X POST -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"net_peerCount","params": [],"id":1}' https://$HAPROXY_SERVER_NAME:$RPT/$HAPROXY_PROXY_NAME 2>/dev/null | jq '.result' -r) # If any of the above tests failed, then exit 1. -if [[ $our_blockheight -lt $($pokt_blockheight - 10)]]; then exit 1; fi +if [[ $our_blockheight -lt $($pokt_blockheight - 10) ]]; then exit 1; fi if [[ `printf "%d" $peers` == "0" || `printf "%d" $peers` == "1" ]]; then exit 1; fi exit 0 \ No newline at end of file