From d703769d436b3f0bc20a64554a67886b9fdaed54 Mon Sep 17 00:00:00 2001 From: whyour Date: Mon, 4 Apr 2022 22:40:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=BF=97=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/task.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shell/task.sh b/shell/task.sh index 60c5faba..dfa7a743 100755 --- a/shell/task.sh +++ b/shell/task.sh @@ -100,7 +100,7 @@ run_normal() { log_path="$log_dir/$log_time.log" cmd="&>> $dir_log/$log_path" [[ "$show_log" == "true" ]] && cmd="" - make_dir "$log_dir" + make_dir "$dir_log/$log_dir" local begin_time=$(date '+%Y-%m-%d %H:%M:%S') local begin_timestamp=$(date "+%s") @@ -169,7 +169,7 @@ run_concurrent() { log_path="$log_dir/$log_time.log" cmd="&>> $dir_log/$log_path" [[ "$show_log" == "true" ]] && cmd="" - make_dir $log_dir + make_dir "$dir_log/$log_dir" local begin_time=$(date '+%Y-%m-%d %H:%M:%S') local begin_timestamp=$(date "+%s") @@ -238,7 +238,7 @@ run_designated() { log_path="$log_dir/$log_time.log" cmd="&>> $dir_log/$log_path" [[ "$show_log" == "true" ]] && cmd="" - make_dir $log_dir + make_dir "$dir_log/$log_dir" local begin_time=$(date '+%Y-%m-%d %H:%M:%S') local begin_timestamp=$(date "+%s") @@ -301,7 +301,7 @@ run_else() { log_path="$log_dir/$log_time.log" cmd="&>> $dir_log/$log_path" [[ "$show_log" == "true" ]] && cmd="" - make_dir $log_dir + make_dir "$dir_log/$log_dir" local begin_time=$(date '+%Y-%m-%d %H:%M:%S') local begin_timestamp=$(date "+%s")