From ff44330aa17cae5385bebd5d14ab0dee07d7ff55 Mon Sep 17 00:00:00 2001 From: whyour Date: Sat, 15 Oct 2022 18:40:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20ql=20=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/update.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/update.sh b/shell/update.sh index e66d8fa5..0c359000 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -432,12 +432,12 @@ main() { local p5=$5 local p6=$6 local p7=$7 - local log_dir="${dir_log}/${p1}" - make_dir "${log_dir}" + local log_dir="${p1}" + make_dir "$dir_log/$log_path" local log_time=$(date "+%Y-%m-%d-%H-%M-%S") local log_path="${log_dir}/${log_time}.log" - cmd=">> $log_path 2>&1" + cmd=">> $dir_log/$log_path 2>&1" [[ "$show_log" == "true" ]] && cmd="" [[ -f $task_error_log_path ]] && cat $task_error_log_path $cmd