mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2025-01-23 21:46:19 +00:00
run_selected_scripts
This commit is contained in:
parent
db71552652
commit
a1aa7daa99
17
Nlbench.sh
17
Nlbench.sh
@ -500,7 +500,6 @@ run_all_scripts() {
|
||||
clear
|
||||
}
|
||||
|
||||
# 执行选定的脚本
|
||||
run_selected_scripts() {
|
||||
clear
|
||||
local base_output_file="NLvps_results_$(date +%Y%m%d_%H%M%S)"
|
||||
@ -523,20 +522,26 @@ run_selected_scripts() {
|
||||
fi
|
||||
done
|
||||
|
||||
IFS=',' read -ra selected_scripts <<< "$script_numbers"
|
||||
echo "开始执行选定的测试脚本..."
|
||||
if [ "$script_numbers" == "0" ]; then
|
||||
if [[ "$script_numbers" == "0" ]]; then
|
||||
clear
|
||||
show_welcome
|
||||
else
|
||||
return # 确保退出函数,不再继续执行
|
||||
fi
|
||||
|
||||
# 分割用户输入为数组
|
||||
IFS=',' read -ra selected_scripts <<< "$script_numbers"
|
||||
|
||||
echo "开始执行选定的测试脚本..."
|
||||
for number in "${selected_scripts[@]}"; do
|
||||
clear
|
||||
run_script "$number" "$base_output_file"
|
||||
done
|
||||
|
||||
# 所有脚本执行完毕后生成 Markdown 输出
|
||||
generate_markdown_output "$base_output_file"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# 主菜单
|
||||
main_menu() {
|
||||
echo -e "${GREEN}测试项目:${NC}Yabs,IP质量,流媒体解锁,响应测试,多线程测试,单线程测试,回程路由。"
|
||||
|
Loading…
Reference in New Issue
Block a user