diff --git a/docs/cn/install.sh b/docs/cn/install.sh index b7a01d9bf..94d7a6ba4 100755 --- a/docs/cn/install.sh +++ b/docs/cn/install.sh @@ -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" diff --git a/docs/install.sh b/docs/install.sh index add0b1515..6badfb340 100755 --- a/docs/install.sh +++ b/docs/install.sh @@ -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"