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

Fix vim81 checking

close #2140
This commit is contained in:
Shidong Wang 2019-01-26 11:14:25 +08:00
parent dcecba8ea0
commit 56e39b40e2
2 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ check_requirements () {
warn "缺少依赖git"
fi
if hash "vim" &>/dev/null; then
is_vim8=$(vim --version | grep "Vi IMproved 8.0")
is_vim8=$(vim --version | grep "Vi IMproved 8")
is_vim74=$(vim --version | grep "Vi IMproved 7.4")
if [ -n "$is_vim8" ]; then
success "检测到 Vim 版本: vim 8.0"

View File

@ -240,7 +240,7 @@ check_requirements () {
warn "Check Requirements : git"
fi
if hash "vim" &>/dev/null; then
is_vim8=$(vim --version | grep "Vi IMproved 8.0")
is_vim8=$(vim --version | grep "Vi IMproved 8")
is_vim74=$(vim --version | grep "Vi IMproved 7.4")
if [ -n "$is_vim8" ]; then
success "Check Requirements: vim 8.0"