~crash -t命令增加强制调用tui-lite.sh机制

~更新界面列表及部分文字说明优化
This commit is contained in:
juewuy
2026-01-21 19:40:25 +08:00
parent e8651591ff
commit 8fd77bb666
2 changed files with 26 additions and 30 deletions

View File

@@ -22,6 +22,7 @@ CFG_PATH="$CRASHDIR"/configs/ShellCrash.cfg
# 加载Tui界面
[ -z "$tui_type" ] && tui_type='tui_layout'
[ "$1" = '-l' ] && tui_type='tui_lite'
. "$CRASHDIR"/menus/"$tui_type".sh
# 加载语言
@@ -247,10 +248,13 @@ case "$1" in
"")
main_menu
;;
-l)
main_menu
;;
-t)
shtype=sh
[ -n "$(ls -l /bin/sh | grep -o dash)" ] && shtype=bash
"$shtype" -x "$CRASHDIR"/menu.sh
"$shtype" -x "$CRASHDIR"/menu.sh -l
;;
-s)
"$CRASHDIR"/start.sh "$2" "$3" "$4" "$5" "$6"