Tuning some numbers
This commit is contained in:
parent
902048e282
commit
dfa9419b67
3 changed files with 3 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ set -e
|
|||
mkdir -p ../dl
|
||||
|
||||
# Only run once a week
|
||||
[ -e ../dl/current ] && [ -z $(find ../dl/current -daystart -mtime +7) ] && exit
|
||||
[ -e ../dl/current ] && [ -z $(find ../dl/current -daystart -mtime +6) ] && exit
|
||||
|
||||
# Only keep the last dump
|
||||
rm -rf $(printf '%s\n' ../dl/????-??-?? | sort | head -n -1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue