From 47e3ddad12cba09931a0a2f6996a4a6077a1d441 Mon Sep 17 00:00:00 2001 From: squidbear <379651+czarly@users.noreply.github.com> Date: Sat, 29 Mar 2025 08:01:30 +0100 Subject: [PATCH] fix --- berachain/scripts/init.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/berachain/scripts/init.sh b/berachain/scripts/init.sh index 69328a89..cd5ed317 100644 --- a/berachain/scripts/init.sh +++ b/berachain/scripts/init.sh @@ -30,10 +30,10 @@ SEEDS_URL="https://raw.githubusercontent.com/berachain/beacon-kit/main/testing/n # this goes first because it won't overwrite shit +apk add curl +if [ $? -ne 0 ]; then exit 1; fi if $BEACOND init ${MONIKER} --chain-id ${CHAINNAME}-beacon-${CHAINID} --home /root/.beacond/; then - apk add curl - # Define variables CONFIG_TOML_URL="https://raw.githubusercontent.com/berachain/beacon-kit/main/testing/networks/$CHAINID/config.toml" APP_TOML_URL="https://raw.githubusercontent.com/berachain/beacon-kit/main/testing/networks/$CHAINID/app.toml" @@ -84,7 +84,7 @@ fi #cd "$CONFIG_DIR" -while curl -s -X POST --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' -H "Content-Type: application/json" "$L2_RPC" | grep -q '"result":false'; do +while curl -s -X POST --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' -H "Content-Type: application/json" "$L2_RPC" | grep -q '"result":true'; do echo "Waiting for L2 to finish syncing..." sleep 10 done