From 5edebdd5f3b4885d68e6ee16cba936121e7a1d9c Mon Sep 17 00:00:00 2001 From: whyour Date: Fri, 3 Feb 2023 23:30:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E7=9B=AE=E5=BD=95=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/task.sh | 7 +++++-- src/pages/crontab/index.tsx | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/shell/task.sh b/shell/task.sh index 29eac09c..53ebcf06 100755 --- a/shell/task.sh +++ b/shell/task.sh @@ -48,8 +48,11 @@ handle_log_path() { log_dir="${log_dir_tmp%.*}${suffix}" log_path="$log_dir/$log_time.log" cmd=">> $dir_log/$log_path 2>&1" - [[ "$show_log" == "true" ]] && cmd="" - make_dir "$dir_log/$log_dir" + if [[ "$show_log" == "true" ]]; then + cmd="" + else + make_dir "$dir_log/$log_dir" + fi } format_params() { diff --git a/src/pages/crontab/index.tsx b/src/pages/crontab/index.tsx index 9f8bede9..47fc1ef0 100644 --- a/src/pages/crontab/index.tsx +++ b/src/pages/crontab/index.tsx @@ -263,7 +263,6 @@ const Crontab = () => { .replace(' 24:', ' 00:'); }, }, - { title: '状态', key: 'status',