From eef41088b15e14abc41f484d2e9bc76038fe1a45 Mon Sep 17 00:00:00 2001
From: Kenneth Reitz <me@kennethreitz.org>
Date: Tue, 13 Oct 2015 11:23:34 -0400
Subject: [PATCH] mkdir-p

---
 bin/compile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bin/compile b/bin/compile
index 3888dc95..5ac57ec8 100755
--- a/bin/compile
+++ b/bin/compile
@@ -218,6 +218,8 @@ bpwatch stop post_compile
 
 # Store new artifacts in cache.
 bpwatch start dump_cache
+  mkdir -p $CACHE_DIR/$CACHED_DIR
+
   # python vendor python-stack python-version venv
   rm -rf $CACHE_DIR/$CACHED_DIR/python
   cp -R $CACHED_DIR/python $CACHE_DIR/$CACHED_DIR/python
@@ -233,6 +235,8 @@ bpwatch start dump_cache
 
   rm -rf $CACHE_DIR/$CACHED_DIR/venv
   cp -R $CACHED_DIR/venv $CACHE_DIR/$CACHED_DIR/venv  &> /dev/null || true
+    mkdir -p $CACHE_DIR/$CACHED_DIR
+
 
 bpwatch stop dump_cache
 
-- 
GitLab