修复 task 命令日志目录判断

This commit is contained in:
whyour 2023-05-04 13:11:18 +08:00
parent be94d796ac
commit 2295fabcc5

View File

@ -66,7 +66,7 @@ handle_log_path() {
log_dir="${log_dir_tmp%.*}${suffix}"
log_path="$log_dir/$log_time.log"
if [[ $real_log_path != "${log_path}" ]]; then
if [[ $real_log_path ]]; then
log_path="$real_log_path"
fi