diff --git a/bash/cron_delete_mp4.sh b/bash/cron_delete_mp4.sh index 1a04e16..0adbe3a 100644 --- a/bash/cron_delete_mp4.sh +++ b/bash/cron_delete_mp4.sh @@ -1,7 +1,7 @@ #!/bin/bash # 设置文件保留时间为2天 -DAYS=2 +DAYS=1 # 1代表大于1天,即2天 # 使用find命令查找所有符合条件的文件 find /home/pi/mp4 -type f -mtime +$DAYS -exec rm -f {} \;