~增加日志容量,取消60分钟以内定时任务的日志记录

This commit is contained in:
juewuy
2026-01-25 20:43:34 +08:00
parent 828d70e4f8
commit d98501fe66
2 changed files with 7 additions and 8 deletions

View File

@@ -14,8 +14,7 @@ task_logger(){
[ "$task_push" = 1 ] && push= || push=off
[ -n "$2" -a "$2" != 0 ] && echo -e "\033[$2m$1\033[0m"
[ "$3" = 'off' ] && push=off
echo "$1" |grep -qE '(每隔|时每)([1-9]|[1-9][0-9])分钟' && push=off
logger "$1" 0 "$push"
echo "$1" |grep -qE '(每隔|时每)([1-9]|[1-9][0-9])分钟' || logger "$1" 0 "$push"
}
#任务命令