Skip to content

Commit

Permalink
修复 mac 任务无法正常退出
Browse files Browse the repository at this point in the history
  • Loading branch information
whyour committed Oct 16, 2023
1 parent 533e12a commit 43c0cd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shell/task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ handle_log_path "${task_shell_params[@]}"
init_begin_time

eval . $dir_shell/otask.sh "$cmd"
[[ -f "$dir_log/$log_path" ]] && [[ ! $show_log ]] && [[ "$real_time" != "true" ]] && cat "$dir_log/$log_path"
# mac cat 无法正常退出
# [[ -f "$dir_log/$log_path" ]] && [[ ! $show_log ]] && [[ "$real_time" != "true" ]] && cat "$dir_log/$log_path"

exit 0

0 comments on commit 43c0cd8

Please sign in to comment.