wormhole/terra/tools/deploy.sh

17 lines
335 B
Bash

# Wait for node to start
while ! /bin/netcat -z localhost 26657; do
sleep 1
done
# Wait for first block
while [ $(curl localhost:26657/status -ks | jq ".result.sync_info.latest_block_height|tonumber") -lt 1 ]; do
sleep 1
done
sleep 2
npm ci && node deploy.js
echo "Going to sleep, interrupt if running manually"
sleep infinity