Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-shashank committed May 16, 2024
1 parent 15bd4db commit 699c397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansible/archival-snapshots/resources/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ while ((LATEST_EPOCH - CURRENT_EPOCH > 30000)); do
# Export full snapshot to generate lite and diff snapshots
EPOCH_TIMESTAMP=$((GENESIS_TIMESTAMP + NEW_EPOCH*SECONDS_PER_EPOCH))
DATE=$(date --date=@"$EPOCH_TIMESTAMP" -u -I)
NEW_SNAPSHOT="forest_snapshot_mainnet_$DATE_height_$NEW_EPOCH.forest.car.zst"

NEW_SNAPSHOT="forest_snapshot_mainnet_${DATE}_height_${NEW_EPOCH}.forest.car.zst"
if [ ! -f "./$NEW_SNAPSHOT" ]; then
echo "Exporting snapshot: $NEW_SNAPSHOT"
$FOREST_CLI snapshot export --tipset "$NEW_EPOCH" --depth 30000 > export.txt
Expand Down

0 comments on commit 699c397

Please sign in to comment.