From 6845ac5f748d9a6563cc4188689c2502d5e269b8 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Tue, 4 Jul 2017 00:04:59 +0800 Subject: [PATCH] Fix install script bug with -u option --- docs/install.sh | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/docs/install.sh b/docs/install.sh index 6daaf503d..6deb24874 100755 --- a/docs/install.sh +++ b/docs/install.sh @@ -154,13 +154,13 @@ usage () { if [ $# -gt 0 ] then case $1 in - --uninstall) + --uninstall|-u) info "Trying to uninstall SpaceVim" uninstall_vim uninstall_neovim exit 0 ;; - --install) + --install|-i) need_cmd 'git' fetch_repo if [ $# -eq 2 ] @@ -179,19 +179,11 @@ then install_neovim exit 0 ;; - -h) + --help|-h) usage exit 0 ;; - --help) - usage - exit 0 - ;; - -v) - msg "${Version}" - exit 0 - ;; - --version) + --version|-v) msg "${Version}" exit 0 esac