This commit is contained in:
James 2025-01-21 01:45:18 +08:00
parent 733c5ef5bb
commit b8b242a1c3

View File

@ -544,8 +544,8 @@ main_menu() {
echo -e "${YELLOW}2. 选择特定测试脚本${NC}" echo -e "${YELLOW}2. 选择特定测试脚本${NC}"
echo -e "${YELLOW}0. 退出${NC}" echo -e "${YELLOW}0. 退出${NC}"
# 提示输入并读取 # 提示输入并读取,从终端读取输入
read -p "请选择操作 [0-2]: " choice read -p "请选择操作 [0-2]: " choice < /dev/tty
# 确保输入非空 # 确保输入非空
if [[ -z "$choice" ]]; then if [[ -z "$choice" ]]; then
@ -578,6 +578,7 @@ main_menu() {
} }
# 输出欢迎信息 # 输出欢迎信息
show_welcome() { show_welcome() {
echo "" echo ""