Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-shashank committed May 7, 2024
1 parent 6aac20f commit 333ab13
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ansible/archival-snapshots/resources/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ while ((LATEST_EPOCH - CURRENT_EPOCH > 30000)); do
echo "Next Height: $NEW_EPOCH"

# Export full snapshot to generate lite and diff snapshots
EXPORT_OUTPUT=$($FOREST_CLI snapshot export --tipset "$NEW_EPOCH" --depth 30000)
echo "Downloaded $EXPORT_OUTPUT"
NEW_SNAPSHOT=$(echo "$EXPORT_OUTPUT" | grep forest | awk -F'[:]' '{print $1}')

$FOREST_CLI snapshot export --tipset "$NEW_EPOCH" --depth 30000 > export.log
NEW_SNAPSHOT=$(grep forest export.log | awk -F'[:]' '{print $1}')

# Generate and upload lite snapshot
if [ ! -f "$LITE_SNAPSHOT_DIR/$NEW_SNAPSHOT" ]; then
Expand Down

0 comments on commit 333ab13

Please sign in to comment.