{"action":"created","issue":{"url":"https://api.github.com/repos/quericy/one-key-ikev2-vpn/issues/2","labels_url":"https://api.github.com/repos/quericy/one-key-ikev2-vpn/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/quericy/one-key-ikev2-vpn/issues/2/comments","events_url":"https://api.github.com/repos/quericy/one-key-ikev2-vpn/issues/2/events","html_url":"https://github.com/quericy/one-key-ikev2-vpn/issues/2","id":94965148,"number":2,"title":"choose VPS type: wrong choice!","user":{"login":"Momosusu","id":11872325,"avatar_url":"https://avatars.githubusercontent.com/u/11872325?v=3","gravatar_id":"","url":"https://api.github.com/users/Momosusu","html_url":"https://github.com/Momosusu","followers_url":"https://api.github.com/users/Momosusu/followers","following_url":"https://api.github.com/users/Momosusu/following{/other_user}","gists_url":"https://api.github.com/users/Momosusu/gists{/gist_id}","starred_url":"https://api.github.com/users/Momosusu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Momosusu/subscriptions","organizations_url":"https://api.github.com/users/Momosusu/orgs","repos_url":"https://api.github.com/users/Momosusu/repos","events_url":"https://api.github.com/users/Momosusu/events{/privacy}","received_events_url":"https://api.github.com/users/Momosusu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-14T14:56:41Z","updated_at":"2015-07-15T01:28:19Z","closed_at":null,"body":"please choose the type of your VPS(Xen、KVM: 1  ,  OpenVZ: 2):\r\nwrong choice!\r\n\r\nExit code: 1\r\n\r\n---------------------------------------\r\n echo \"please choose the type of your VPS(Xen、KVM: 1  ,  OpenVZ: 2):\"\r\n    read -p \"your choice(1 or 2):\" os_choice\r\n    if [ \"$os_choice\" = \"1\" ]; then\r\n        os=\"1\"\r\n\t\tos_str=\"Xen、KVM\"\r\n\t\telse\r\n\t\t\tif [ \"$os_choice\" = \"2\" ]; then\r\n\t\t\t\tos=\"2\"\r\n\t\t\t\tos_str=\"OpenVZ\"\r\n\t\t\t\telse\r\n\t\t\t\techo \"wrong choice!\"\r\n\t\t\t\texit 1\r\n\t\t\tfi\r\n    fi\r\n\r\n----------------------------------------------------------------------\r\n\r\n脚本的if 和else 好像没有对齐，是这个问题么？我有点小白，或者这样同样可以键入？\r\n"},"comment":{"url":"https://api.github.com/repos/quericy/one-key-ikev2-vpn/issues/comments/121448650","html_url":"https://github.com/quericy/one-key-ikev2-vpn/issues/2#issuecomment-121448650","issue_url":"https://api.github.com/repos/quericy/one-key-ikev2-vpn/issues/2","id":121448650,"user":{"login":"quericy","id":9134027,"avatar_url":"https://avatars.githubusercontent.com/u/9134027?v=3","gravatar_id":"","url":"https://api.github.com/users/quericy","html_url":"https://github.com/quericy","followers_url":"https://api.github.com/users/quericy/followers","following_url":"https://api.github.com/users/quericy/following{/other_user}","gists_url":"https://api.github.com/users/quericy/gists{/gist_id}","starred_url":"https://api.github.com/users/quericy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quericy/subscriptions","organizations_url":"https://api.github.com/users/quericy/orgs","repos_url":"https://api.github.com/users/quericy/repos","events_url":"https://api.github.com/users/quericy/events{/privacy}","received_events_url":"https://api.github.com/users/quericy/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T01:28:19Z","updated_at":"2015-07-15T01:28:19Z","body":"和对齐无关...这里是用read指令读取你输入的数字来匹配选项"}}