task和ql命令添加基础目录检测

This commit is contained in:
hanhh
2021-09-27 19:38:06 +08:00
parent f17642b243
commit fa02df0d8f
3 changed files with 2 additions and 1 deletions
+1
View File
@@ -320,6 +320,7 @@ init_env
detect_termux
detect_macos
define_cmd
fix_config
echo '' > $task_error_log_path
import_config $1 >> $task_error_log_path 2>&1
+1
View File
@@ -434,6 +434,7 @@ main() {
local log_time=$(date "+%Y-%m-%d-%H-%M-%S")
local log_path="$dir_log/update/${log_time}_$p1.log"
local begin_time=$(date '+%Y-%m-%d %H:%M:%S')
case $p1 in
update)
echo -e "## 开始执行... $begin_time\n" >>$log_path