From d1304de69e7f33625d42aa80e18c263ef2082e22 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 5 Feb 2023 15:22:53 +0800 Subject: [PATCH] Update cli.sh --- cli.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cli.sh b/cli.sh index 70cce28e1..841e1fccc 100755 --- a/cli.sh +++ b/cli.sh @@ -21,12 +21,12 @@ mw_start_task() sleep 0.3 isStart=$(ps aux |grep 'task.py'|grep -v grep|awk '{print $2}') if [ "$isStart" == '' ];then - echo -e "\033[31mfailed\033[0m" - echo '------------------------------------------------------' - tail -n 20 $DIR/logs/task.log - echo '------------------------------------------------------' - echo -e "\033[31mError: mw-tasks service startup failed.\033[0m" - return; + echo -e "\033[31mfailed\033[0m" + echo '------------------------------------------------------' + tail -n 20 $DIR/logs/task.log + echo '------------------------------------------------------' + echo -e "\033[31mError: mw-tasks service startup failed.\033[0m" + return; fi echo -e "\033[32mdone\033[0m" else