From cc1ac1ff18316ac5436b45856fa1e8e28909720f Mon Sep 17 00:00:00 2001 From: Roberto Bayardo Date: Tue, 7 Nov 2023 09:26:18 -0800 Subject: [PATCH] change ws/http substitution to first occurrence only --- 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