mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
shell 增加国际化
This commit is contained in:
+7
-1
@@ -4,7 +4,13 @@ dir_shell=$QL_DIR/shell
|
||||
. $dir_shell/share.sh
|
||||
. $dir_shell/api.sh
|
||||
|
||||
trap "single_hanle" 2 3 20 15 14 19 1
|
||||
trap 'single_hanle SIGINT' INT
|
||||
trap 'single_hanle SIGTERM' TERM
|
||||
trap 'single_hanle SIGHUP' HUP
|
||||
trap 'single_hanle SIGALRM' ALRM
|
||||
trap 'single_hanle SIGTSTP' TSTP
|
||||
trap 'single_hanle SIGQUIT' QUIT
|
||||
|
||||
single_hanle() {
|
||||
_task_exit_code="${_task_exit_code:-$?}"
|
||||
[[ "$_task_exit_code" == "0" ]] && _task_exit_code="1"
|
||||
|
||||
Reference in New Issue
Block a user