提交 be6097dd 编写于 作者: S suoych

Cube num config bug

上级 38da2caa
......@@ -496,7 +496,7 @@ if [ $CMD = "config_resource" ]; then
die "Invalid TRAINER Num, should be greater than 0 and less than 10."
fi
if ! grep '^[[:digit:]]*$' <<< "$CUBE" >> /dev/null || [ $CUBE -lt 0 ] || [ $CUBE -gt 9 ]; then
if ! grep '^[[:digit:]]*$' <<< "$CUBE" >> /dev/null || [ $CUBE -lt 1 ] || [ $CUBE -gt 9 ]; then
die "Invalid CUBE Num, should be greater than 0 and less than 10."
fi
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册