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