修复获取任务退出码

This commit is contained in:
whyour
2026-06-07 23:28:21 +08:00
parent 34d4526413
commit 23b41893a3
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -6,7 +6,9 @@ dir_shell=$QL_DIR/shell
trap "single_hanle" 2 3 20 15 14 19 1
single_hanle() {
eval MANUAL=true handle_task_end "$@" "$cmd"
_task_exit_code="${_task_exit_code:-$?}"
[[ "$_task_exit_code" == "0" ]] && _task_exit_code="1"
eval MANUAL=true handle_task_end "$@"
exit 1
}