Skip to content

Commit

Permalink
修改输入判断
Browse files Browse the repository at this point in the history
  • Loading branch information
fakeboboliu authored May 1, 2017
1 parent c29549a commit 8bdc17c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ echo "直接回车返回上级菜单"
while :; do echo
read -p "请选择: " serverc
[ -z "$serverc" ] && ssr && break
if [[ ! $serverc =~ ^[1-8]$ ]]; then
if [[ ! $serverc =~ ^[1-9]$ ]]; then
echo "输入错误! 请输入正确的数字!"
else
break
Expand Down

0 comments on commit 8bdc17c

Please sign in to comment.