-
Notifications
You must be signed in to change notification settings - Fork 707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
choose VPS type: wrong choice! #2
Comments
和对齐无关...这里是用read指令读取你输入的数字来匹配选项 |
出现wrong choice是因为没有执行 read 指令么? |
你选择数字了吗.... |
已经搞定了,开始用的 SHELL BASIC, 有些命令执行不了,换了Interactive Shell就安装成功了。我怎么才能知道strongswan是否在运行呢?用top 命令可以查看到么? |
Ipsec status |
一键安装是成功了,但是我的黑莓还是上不了,总是time out,哭死。。。。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
please choose the type of your VPS(Xen、KVM: 1 , OpenVZ: 2):
wrong choice!
Exit code: 1
echo "please choose the type of your VPS(Xen、KVM: 1 , OpenVZ: 2):"
read -p "your choice(1 or 2):" os_choice
if [ "$os_choice" = "1" ]; then
os="1"
os_str="Xen、KVM"
else
if [ "$os_choice" = "2" ]; then
os="2"
os_str="OpenVZ"
else
echo "wrong choice!"
exit 1
fi
fi
脚本的if 和else 好像没有对齐,是这个问题么?我有点小白,或者这样同样可以键入?
The text was updated successfully, but these errors were encountered: