From 4d2d7f6a0a18607670aec6c273a5d10e8aead23d Mon Sep 17 00:00:00 2001 From: lulzette Date: Sat, 24 Apr 2021 10:24:47 +0300 Subject: [PATCH] eqwert --- cron.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cron.sh b/cron.sh index 80785bb..b333ac5 100755 --- a/cron.sh +++ b/cron.sh @@ -18,11 +18,11 @@ for i in $list; do done #Show status -echo "====" +echo for i in $list; do [[ -f $storage_path/$i/pid ]] && echo $i "is recording!" || echo $i "is not recording" done -echo "====" +echo echo "Removing old files (older than $ctime_remove days):" find $storage_path/ -ctime +$ctime_remove -name "*mp4*" find $storage_path/ -ctime +$ctime_remove -name "*mp4*" -exec rm {} \;