Delete old files.

This commit is contained in:
tastytea 2020-12-16 16:14:08 +01:00
parent b8347e1645
commit cfc5ac12b9
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ function main()
--format "${ytdl_format}" \
"${feed}"
done
find "${download_dir}" -type f -mtime +"${keep_for_days}" -delete
}
main