From 9d8cd4668d083df29299fa5bb17016dbffcaa52b Mon Sep 17 00:00:00 2001 From: Prabuddha Chakraborty Date: Wed, 26 Aug 2015 18:25:06 +0530 Subject: [PATCH] change grep -r to grep -q --- ee/cli/plugins/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ee/cli/plugins/site.py b/ee/cli/plugins/site.py index 046cd153..fd2b7984 100644 --- a/ee/cli/plugins/site.py +++ b/ee/cli/plugins/site.py @@ -1307,7 +1307,7 @@ class EESiteUpdateController(CementBaseController): if oldcachetype != 'wpredis' and data['wpredis']: try: if installwp_plugin(self, 'redis-cache', data): - if EEShellExec.cmd_exec(self, "grep -r \"WP_CACHE_KEY_SALT\" {0}/wp-config.php" + if EEShellExec.cmd_exec(self, "grep -q \"WP_CACHE_KEY_SALT\" {0}/wp-config.php" .format(ee_site_webroot)): pass else: