aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorChad Catlett2012-11-26 07:16:56 -0600
committerMike McQuaid2012-11-30 21:52:13 +0000
commit5513711f1313da54ee16d08cd1d69123d9aed579 (patch)
treed6cd84b1d05f1c89da831be124121c497e9e00c0 /Library/Formula
parent92d37943150b86b2875812254b661555b674c466 (diff)
downloadhomebrew-5513711f1313da54ee16d08cd1d69123d9aed579.tar.bz2
redis: fixed redis.conf rename false positive.
Closes #16239. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/redis.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/redis.rb b/Library/Formula/redis.rb
index 1fdb7173c..377d26fc0 100644
--- a/Library/Formula/redis.rb
+++ b/Library/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