mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 10:20:06 +08:00
Fix install script bug with -u option
This commit is contained in:
parent
317bf128a3
commit
6845ac5f74
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user