feat(脚本): 测速脚本修改无法判断0的问题

pull/534/merge
mack-a 2020-08-04 16:58:46 +08:00
parent 3df90173a8
commit 7683508121
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ init(){
echoContent green "请输入单个ip的测试次数【默认为5次】"
echoContent red "============================================="
read testNum
if [[ "$testNum" =~ ^[1-9]+$ ]]
if [[ "$testNum" =~ ^[0-9]+$ ]]
then
num=${testNum}
else