From c3c3dc3e06a886f9548001a055a197585a610c6b Mon Sep 17 00:00:00 2001 From: hanhh <18330117883@163.com> Date: Tue, 8 Jun 2021 15:29:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/rmlog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/rmlog.sh b/shell/rmlog.sh index 53402417..bf9a39ad 100755 --- a/shell/rmlog.sh +++ b/shell/rmlog.sh @@ -8,7 +8,7 @@ days=$1 ## 删除运行js脚本的旧日志 remove_js_log() { - local log_full_path_list=$(find test/ -name "*.log") + local log_full_path_list=$(find $dir_log/ -name "*.log") local diff_time for log in $log_full_path_list; do local log_date=$(echo $log | awk -F "/" '{print $NF}' | cut -c1-10) #文件名比文件属性获得的日期要可靠