From d7469f9956eb5132cc81ab0d00efe5a7421eb8bc Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 29 Oct 2024 22:22:00 +0300 Subject: [PATCH] delete old temp_songs --- scripts/cleanup_videos.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/cleanup_videos.sh b/scripts/cleanup_videos.sh index cce99daea..b830c00b4 100755 --- a/scripts/cleanup_videos.sh +++ b/scripts/cleanup_videos.sh @@ -1,4 +1,5 @@ #!/bin/bash find /videos -not -name "*.mp4" -type f -delete -find /videos -name "*-t.mp4" -type f -delete \ No newline at end of file +find /videos -name "*-t.mp4" -type f -delete +find /temp_songs -type f -mtime +30 -delete