mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
Fix git version comparison
This commit is contained in:
parent
13a57c9c35
commit
885860d233
@ -525,7 +525,8 @@ HAVE_GIT = no
|
||||
!if "$(HAVE_GIT)" == "no"
|
||||
!else if [for /f "tokens=3" %I in ('git --version') do @(\
|
||||
for /f "delims=. tokens=1-2" %I in ("%I") do @(\
|
||||
if %I lss 2 (exit 1) else if %J lss 10 (exit 1) else (exit 0)\
|
||||
if %I lss 2 (exit 1) else if %I gtr 2 (exit 0) \
|
||||
else if %J lss 10 (exit 1) else (exit 0)\
|
||||
)\
|
||||
)]
|
||||
HAVE_GIT = no
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user