From cfc5ac12b921295ff3805bf9f4e9a10541f29f73 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 16 Dec 2020 16:14:08 +0100 Subject: [PATCH] Delete old files. --- download-yt-feeds.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/download-yt-feeds.sh b/download-yt-feeds.sh index a877752..8ab6a02 100755 --- a/download-yt-feeds.sh +++ b/download-yt-feeds.sh @@ -62,6 +62,8 @@ function main() --format "${ytdl_format}" \ "${feed}" done + + find "${download_dir}" -type f -mtime +"${keep_for_days}" -delete } main