make file retention count variable
This commit is contained in:
parent
ad38c09210
commit
891dc82a1b
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
TO_DELETE=$( b2v4 ls b2://"$BUCKET_NAME" | tac | tail -n +8 | tr '\n' ' ' )
|
||||
FILE_QUOTA=${FILE_QUOTA:-7}
|
||||
FILE_QUOTA=$(("$FILE_QUOTA" + 1))
|
||||
TO_DELETE=$( b2v4 ls b2://"$BUCKET_NAME" | tac | tail -n +"$FILE_QUOTA" | tr '\n' ' ' )
|
||||
|
||||
PIDS=""
|
||||
for file in $TO_DELETE; do
|
||||
|
|
Loading…
Reference in a new issue