提交 38da2caa 编写于 作者: S suoych

fix Cube input check bug

上级 74c981ac
......@@ -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 0 ] || [ $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.
先完成此消息的编辑!
想要评论请 注册