1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 09:41:20 +08:00

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

Fixes #11157
This commit is contained in:
Marc Cornellà 2022-10-14 20:31:33 +02:00
parent c7c0a8917b
commit 65a1e4edbe
No known key found for this signature in database
GPG Key ID: 0314585E776A9C1B

View File

@ -273,7 +273,7 @@ setup_ohmyzsh() {
} }
ostype=$(uname) 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 "Windows/MSYS Git is not supported on Cygwin"
fmt_error "Make sure the Cygwin git package is installed and is first on the \$PATH" fmt_error "Make sure the Cygwin git package is installed and is first on the \$PATH"
exit 1 exit 1