From ec6a7787f6fefeff3f479ba1edd0a1c0a2f74540 Mon Sep 17 00:00:00 2001 From: Roberto Bayardo Date: Tue, 7 Nov 2023 09:35:58 -0800 Subject: [PATCH] change ws/http substitution to first occurrence only (#145) --- op-node-entrypoint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op-node-entrypoint b/op-node-entrypoint index 4ae94b1..b7ec9b6 100755 --- a/op-node-entrypoint +++ b/op-node-entrypoint @@ -7,7 +7,7 @@ if [[ -z "$OP_NODE_NETWORK" ]]; then fi # wait until local geth comes up (authed so will return 401 without token) -until [ "$(curl -s -w '%{http_code}' -o /dev/null "${OP_NODE_L2_ENGINE_RPC//ws/http}")" -eq 401 ]; do +until [ "$(curl -s -w '%{http_code}' -o /dev/null "${OP_NODE_L2_ENGINE_RPC/ws/http}")" -eq 401 ]; do echo "waiting for geth to be ready" sleep 5 done