shell 增加国际化

This commit is contained in:
whyour
2026-06-14 16:45:53 +08:00
parent 0ee0b83207
commit b5a5fb3be6
16 changed files with 420 additions and 94 deletions
+7 -1
View File
@@ -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"