feat(脚本): 测速脚本修改无法判断0的问题
parent
3df90173a8
commit
7683508121
|
@ -99,7 +99,7 @@ init(){
|
||||||
echoContent green "请输入单个ip的测试次数【默认为5次】:"
|
echoContent green "请输入单个ip的测试次数【默认为5次】:"
|
||||||
echoContent red "============================================="
|
echoContent red "============================================="
|
||||||
read testNum
|
read testNum
|
||||||
if [[ "$testNum" =~ ^[1-9]+$ ]]
|
if [[ "$testNum" =~ ^[0-9]+$ ]]
|
||||||
then
|
then
|
||||||
num=${testNum}
|
num=${testNum}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue