mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2024-11-10 10:05:18 +00:00
Update Nlbench_beta.sh
This commit is contained in:
parent
bf7f1f074b
commit
6a5cbf475f
@ -407,7 +407,7 @@ run_selected_scripts() {
|
||||
|
||||
while true; do
|
||||
read -p "请输入要执行的脚本编号(用英文逗号分隔,例如:1,2,3):" script_numbers
|
||||
if [[ "$script_numbers" =~ ^[0-10](,[0-10])*$ ]]; then
|
||||
if [[ "$script_numbers" =~ ^(0|[1-9])(,(0|[1-9]))*$ ]]; then
|
||||
break
|
||||
else
|
||||
echo -e "${RED}无效输入,请输入0-10之间的数字,用英文逗号分隔。${NC}"
|
||||
|
Loading…
Reference in New Issue
Block a user