From 2c88d9a359d879a9ae08e25471290593f5d48c56 Mon Sep 17 00:00:00 2001 From: Chad Catlett Date: Mon, 26 Nov 2012 07:16:56 -0600 Subject: [PATCH] redis: fixed redis.conf rename false positive. Closes Homebrew/homebrew#16239. Signed-off-by: Mike McQuaid --- Formula/redis.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/redis.rb b/Formula/redis.rb index 1fdb7173c7e..377d26fc051 100644 --- a/Formula/redis.rb +++ b/Formula/redis.rb @@ -31,7 +31,7 @@ class Redis < Formula end # Fix redis upgrade from 2.4 to 2.6. - if File.exists?(etc/'redis.conf') && File.readlines(etc/'redis.conf').grep(/^vm-enabled/) + if File.exists?(etc/'redis.conf') && !File.readlines(etc/'redis.conf').grep(/^vm-enabled/).empty? mv etc/'redis.conf', etc/'redis.conf.old' ohai "Your redis.conf will not work with 2.6; moved it to redis.conf.old" end