From b9fc30f5925dad34928f0b1234faca52b5eb39b5 Mon Sep 17 00:00:00 2001
From: Kenneth Reitz <me@kennethreitz.com>
Date: Fri, 23 Mar 2012 22:42:40 -0400
Subject: [PATCH] more careful pylibmc check

---
 bin/steps/pylibmc | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/bin/steps/pylibmc b/bin/steps/pylibmc
index 7ca9b9c2..960859b1 100644
--- a/bin/steps/pylibmc
+++ b/bin/steps/pylibmc
@@ -13,8 +13,8 @@
 VENDORED_MEMCACHED="http://cl.ly/0a191R3K160t1w1P0N25/vendor-libmemcached.tar.gz"
 
 # If pylibmc exists within requirements, use vendored libmemcached.
-if (grep -Fiq "pylibmc" requirements.txt)
-then
+if [ requirements.txt ]; then
+  if (grep -Fiq "pylibmc" requirements.txt) then
     echo "-----> Noticed pylibmc. Bootstrapping libmemcached."
     cd .heroku
 
@@ -30,4 +30,7 @@ then
 
     export LIBMEMCACHED=$(pwd)/vendor
     cd ..
+  fi
 fi
+
+
-- 
GitLab