Update Nlbench_beta.sh

This commit is contained in:
Jensfrank 2024-07-17 23:09:47 +08:00 committed by GitHub
parent bf7f1f074b
commit 6a5cbf475f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}"