1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-09 09:40:04 +08:00

Fix install script bug with -u option

This commit is contained in:
wsdjeg 2017-07-04 00:04:59 +08:00
parent 317bf128a3
commit 6845ac5f74

View File

@ -154,13 +154,13 @@ usage () {
if [ $# -gt 0 ] if [ $# -gt 0 ]
then then
case $1 in case $1 in
--uninstall) --uninstall|-u)
info "Trying to uninstall SpaceVim" info "Trying to uninstall SpaceVim"
uninstall_vim uninstall_vim
uninstall_neovim uninstall_neovim
exit 0 exit 0
;; ;;
--install) --install|-i)
need_cmd 'git' need_cmd 'git'
fetch_repo fetch_repo
if [ $# -eq 2 ] if [ $# -eq 2 ]
@ -179,19 +179,11 @@ then
install_neovim install_neovim
exit 0 exit 0
;; ;;
-h) --help|-h)
usage usage
exit 0 exit 0
;; ;;
--help) --version|-v)
usage
exit 0
;;
-v)
msg "${Version}"
exit 0
;;
--version)
msg "${Version}" msg "${Version}"
exit 0 exit 0
esac esac