Skip to content

Commit

Permalink
remove double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
puppetninja committed Jul 30, 2024
1 parent 6a62f29 commit 9ea867d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/tezos/scripts/evm-observer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ EVM_CONFIG_FILE="${EVM_DATA_DIR}/config.json"
# Wait till rollup node to be fully synchronized to run init from rollup command
WAIT_LIMIT=30
COUNTER=1
while [ "$(curl -s http://localhost:8932/local/synchronized)" != "synchronized" ] && [ $COUNTER -lt $WAIT_LIMIT ]; do
while [ "$(curl -s http://localhost:8932/local/synchronized | sed 's/^"//;s/"$//')" != "synchronized" ] && [ $COUNTER -lt $WAIT_LIMIT ]; do
COUNTER=$((COUNTER + 1))
echo "polling ${COUNTER}/${WAIT_LIMIT}: rollup node not synchronized yet"
sleep 60
done

if [ "$(curl -s http://localhost:8932/local/synchronized)" != "synchronized" ]; then
if [ "$(curl -s http://localhost:8932/local/synchronized | sed 's/^"//;s/"$//')" != "synchronized" ]; then
echo "ERROR: rollup node not synchronized within wait limit, exiting...."
exit 1
fi
Expand Down

0 comments on commit 9ea867d

Please sign in to comment.