bumped padding of bundles to 6 digits
This commit is contained in:
parent
59d4d2c9e0
commit
53205ab661
4 changed files with 5 additions and 5 deletions
|
|
@ -98,7 +98,7 @@ if [ "$OLD_TOTAL" -gt "$TOTAL_BUNDLES" ]; then
|
|||
STALE_COUNT=$((OLD_TOTAL - TOTAL_BUNDLES))
|
||||
echo "Deleting $STALE_COUNT stale bundles ($TOTAL_BUNDLES to $((OLD_TOTAL - 1)))..."
|
||||
for i in $(seq "$TOTAL_BUNDLES" "$((OLD_TOTAL - 1))"); do
|
||||
PADDED=$(printf "%04d" "$i")
|
||||
PADDED=$(printf "%06d" "$i")
|
||||
aws s3 rm "s3://$SITE_BUCKET/tabs/${PADDED}.json" --quiet
|
||||
done
|
||||
echo "Deleted $STALE_COUNT stale bundles"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue