Merge pull request #9749 from Bufallo/fix-redis-check
Fix regex in redis version check
This commit is contained in:
commit
1f1b3a0942
1 changed files with 1 additions and 1 deletions
|
@ -335,7 +335,7 @@ namespace :gitlab do
|
|||
print "Redis version >= #{min_redis_version}? ... "
|
||||
|
||||
redis_version = run(%W(redis-cli --version))
|
||||
redis_version = redis_version.try(:match, /redis-cli (.*)/)
|
||||
redis_version = redis_version.try(:match, /redis-cli (\d+\.\d+\.\d+)/)
|
||||
if redis_version &&
|
||||
(Gem::Version.new(redis_version[1]) > Gem::Version.new(min_redis_version))
|
||||
puts "yes".green
|
||||
|
|
Loading…
Reference in a new issue