Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
gzukel committed Mar 8, 2024
1 parent a804e9f commit 94ebe7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrib/docker-scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function setup_restore_type {
logt " Cleanup Snapshot"
rm -rf ${SNAPSHOT_DIR}/${SNAPSHOT_FILENAME}
elif [ "${NETWORK}" == "athens3" ]; then
SNAPSHOT_URL=$(curl -s ${SNAPSHOT_API}/latest-snapshot?network=athens3 | jq .latest_snapshot)
SNAPSHOT_URL=$(curl -s ${SNAPSHOT_API}/latest-snapshot?network=athens3 | jq -r .latest_snapshot)
SNAPSHOT_FILENAME=$(basename "${SNAPSHOT_URL}")
SNAPSHOT_DIR=$(pwd)
logt "Download Snapshot from url: ${SNAPSHOT_URL}"
Expand All @@ -91,7 +91,7 @@ function setup_restore_type {
elif [ "${RESTORE_TYPE}" == "snapshot-archive" ]; then
if [ "${NETWORK}" == "mainnet" ]; then
logt "Get Latest Snapshot URL"
SNAPSHOT_URL=$(curl -s ${SNAPSHOT_API}/latest-archive-snapshot?network=mainnet | jq .latest_snapshot)
SNAPSHOT_URL=$(curl -s ${SNAPSHOT_API}/latest-archive-snapshot?network=mainnet | jq -r .latest_snapshot)
SNAPSHOT_FILENAME=$(basename "${SNAPSHOT_URL}")
SNAPSHOT_DIR=$(pwd)
logt "Download Snapshot from url: ${SNAPSHOT_URL}"
Expand All @@ -102,7 +102,7 @@ function setup_restore_type {
logt " Cleanup Snapshot"
rm -rf ${SNAPSHOT_DIR}/${SNAPSHOT_FILENAME}
elif [ "${NETWORK}" == "athens3" ]; then
SNAPSHOT_URL=$(curl -s ${SNAPSHOT_API}/latest-archive-snapshot?network=athens3 | jq .latest_snapshot)
SNAPSHOT_URL=$(curl -s ${SNAPSHOT_API}/latest-archive-snapshot?network=athens3 | jq -r .latest_snapshot)
SNAPSHOT_FILENAME=$(basename "${SNAPSHOT_URL}")
SNAPSHOT_DIR=$(pwd)
logt "Download Snapshot from url: ${SNAPSHOT_URL}"
Expand Down

0 comments on commit 94ebe7c

Please sign in to comment.