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 08e2865 commit 6aac20f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ansible/archival-snapshots/resources/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ while ((LATEST_EPOCH - CURRENT_EPOCH > 30000)); do
echo "Next Height: $NEW_EPOCH"

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


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

0 comments on commit 6aac20f

Please sign in to comment.