浏览代码

fix(installer): detect newer Git for Windows version errors (#11157)

Fixes #11157
Marc Cornellà 1 年之前
父节点
当前提交
65a1e4edbe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/install.sh

+ 1 - 1
tools/install.sh

@@ -273,7 +273,7 @@ setup_ohmyzsh() {
   }
 
   ostype=$(uname)
-  if [ -z "${ostype%CYGWIN*}" ] && git --version | grep -q msysgit; then
+  if [ -z "${ostype%CYGWIN*}" ] && git --version | grep -Eq 'msysgit|windows'; then
     fmt_error "Windows/MSYS Git is not supported on Cygwin"
     fmt_error "Make sure the Cygwin git package is installed and is first on the \$PATH"
     exit 1