From 24cc273800a1a8a05cf3aa51ffc63e8810daa42a Mon Sep 17 00:00:00 2001 From: Kenneth Reitz <me@kennethreitz.org> Date: Tue, 13 Oct 2015 10:13:23 -0400 Subject: [PATCH] whitelist cache --- bin/compile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/compile b/bin/compile index d7b639ce..69ea53fb 100755 --- a/bin/compile +++ b/bin/compile @@ -145,16 +145,16 @@ bpwatch start clear_old_venvs [ -d $CACHE_DIR/$VIRTUALENV_LOC ] && rm -fr $CACHE_DIR/.heroku/venv $CACHE_DIR/.heroku/src bpwatch stop clear_old_venvs -cd $CACHE_DIR -rm !($WHITELISTED_CACHE_ENTRIES) - -cd $BUILD_DIR - # Restore old artifacts from the cache. bpwatch start restore_cache cp -R $CACHE_DIR/$CACHED_DIR . &> /dev/null || true bpwatch stop restore_cache +# Cleanup what's in the cache. +cd $CACHED_DIR +rm !($WHITELISTED_CACHE_ENTRIES) +cd $BUILD_DIR + set +e # Create set-aside `.heroku` folder. mkdir .heroku &> /dev/null -- GitLab