diff options
author | Marc Cornellà <hello@mcornella.com> | 2022-10-14 20:31:33 +0200 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2022-10-14 20:31:33 +0200 |
commit | 65a1e4edbe678cdac37ad96ca4bc4f6d77e27adf (patch) | |
tree | 7936bc63f85137ea9ce7e1e96dfc7a511aa7b6a1 /tools/install.sh | |
parent | c7c0a8917b8ded7511c07105c82bd7417b92f7a3 (diff) | |
download | zsh-65a1e4edbe678cdac37ad96ca4bc4f6d77e27adf.tar.gz zsh-65a1e4edbe678cdac37ad96ca4bc4f6d77e27adf.tar.bz2 zsh-65a1e4edbe678cdac37ad96ca4bc4f6d77e27adf.zip |
fix(installer): detect newer Git for Windows version errors (#11157)
Fixes #11157
Diffstat (limited to 'tools/install.sh')
-rwxr-xr-x | tools/install.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/install.sh b/tools/install.sh index fb6973dbc..a6538f9d7 100755 --- a/tools/install.sh +++ b/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 |