Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-shashank committed Mar 27, 2024
1 parent 47630a4 commit c8afdd4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ansible/archival-snapshots/resources/diff_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ DIFF_COUNT=10
GENESIS_TIMESTAMP=1598306400
SECONDS_PER_EPOCH=30

for i in `seq 1 $DIFF_COUNT`; do
for i in $(seq 1 $DIFF_COUNT); do
EPOCH=$((EPOCH_START+DIFF_STEP*i))
EPOCH_TIMESTAMP=$((1598306400 + EPOCH*SECONDS_PER_EPOCH))
DATE=$(date --date=@$EPOCH_TIMESTAMP -u -I)
FILE=diff_snapshots/forest_diff_mainnet_"$DATE"_height_$((EPOCH-DIFF_STEP))+"$DIFF_STEP".forest.car.zst
if ! test -f $FILE; then
"$FOREST" archive export --depth $DIFF_STEP --epoch $EPOCH --diff $((EPOCH-DIFF_STEP)) --diff-depth 900 --output-path $FILE $@
EPOCH_TIMESTAMP=$((GENESIS_TIMESTAMP + EPOCH*SECONDS_PER_EPOCH))
DATE=$(date --date=@"$EPOCH_TIMESTAMP" -u -I)
FILE="diff_snapshots/forest_diff_mainnet_${DATE}_height_$((EPOCH-DIFF_STEP))+$DIFF_STEP.forest.car.zst"
if ! test -f "$FILE"; then
"$FOREST" archive export --depth "$DIFF_STEP" --epoch "$EPOCH" --diff $((EPOCH-DIFF_STEP)) --diff-depth 900 --output-path "$FILE" "$@"
else
echo Skipping $FILE
echo "Skipping $FILE"
fi
done

0 comments on commit c8afdd4

Please sign in to comment.