mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
修复获取任务退出码
This commit is contained in:
+3
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user