65a1e4edbe678cdac37ad96ca4bc4f6d77e27adf

Author
Marc Cornellà <hello@mcornella.com>
Committer
Marc Cornellà <hello@mcornella.com>
Date

Message

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

Fixes #11157

Diff

 1diff --git a/tools/install.sh b/tools/install.sh
 2index fb6973dbc85ce9e78945e28879a99d82058c6bb0..a6538f9d71c1dbd7c5ffbe255a31094bea97896b 100755
 3--- a/tools/install.sh
 4+++ b/tools/install.sh
 5@@ -273,7 +273,7 @@ setup_ohmyzsh() {
 6   }
 7 
 8   ostype=$(uname)
 9-  if [ -z "${ostype%CYGWIN*}" ] && git --version | grep -q msysgit; then
10+  if [ -z "${ostype%CYGWIN*}" ] && git --version | grep -Eq 'msysgit|windows'; then
11     fmt_error "Windows/MSYS Git is not supported on Cygwin"
12     fmt_error "Make sure the Cygwin git package is installed and is first on the \$PATH"
13     exit 1