From 6b3f63252fdb44d19700985821c4879fbf16a2c6 Mon Sep 17 00:00:00 2001
From: Kenneth Reitz <me@kennethreitz.org>
Date: Tue, 27 Oct 2015 12:50:17 -0400
Subject: [PATCH] cleanup

---
 bin/compile | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/bin/compile b/bin/compile
index 235f77b9..a7487014 100755
--- a/bin/compile
+++ b/bin/compile
@@ -19,9 +19,6 @@ BUILD_DIR=$1
 CACHE_DIR=$2
 ENV_DIR=$3
 
-
-CACHED_DIR=".heroku"
-
 # Static configurations for virtualenv caches.
 VIRTUALENV_LOC=".heroku/venv"
 LEGACY_TRIGGER="lib/python2.7"
@@ -147,11 +144,11 @@ bpwatch stop clear_old_venvs
 bpwatch start restore_cache
     mkdir -p .heroku
 
-    cp -R $CACHE_DIR/$CACHED_DIR/python .heroku/ &> /dev/null || true
-    cp -R $CACHE_DIR/$CACHED_DIR/python-stack .heroku/ &> /dev/null || true
-    cp -R $CACHE_DIR/$CACHED_DIR/python-version .heroku/ &> /dev/null || true
-    cp -R $CACHE_DIR/$CACHED_DIR/vendor .heroku/ &> /dev/null || true
-    cp -R $CACHE_DIR/$CACHED_DIR/venv .heroku/ &> /dev/null || true
+    cp -R $CACHE_DIR/.heroku/python .heroku/ &> /dev/null || true
+    cp -R $CACHE_DIR/.heroku/python-stack .heroku/ &> /dev/null || true
+    cp -R $CACHE_DIR/.heroku/python-version .heroku/ &> /dev/null || true
+    cp -R $CACHE_DIR/.heroku/vendor .heroku/ &> /dev/null || true
+    cp -R $CACHE_DIR/.heroku/venv .heroku/ &> /dev/null || true
 
 bpwatch stop restore_cache
 
-- 
GitLab