diff --git a/bin/compile b/bin/compile
index 4632f2afd721dbc47455147ef7628e313ddba003..31dce063816805243cf93258c00ab1e2c3480317 100755
--- a/bin/compile
+++ b/bin/compile
@@ -148,8 +148,8 @@ bpwatch stop clear_old_venvs
 bpwatch start restore_cache
   mkdir -p $CACHE_DIR/$CACHED_DIR
   for dir in $CACHED_DIRS; do
-    echo "cp -R $CACHE_DIR/$dir ."
-    cp -R $CACHE_DIR/$dir . &> /dev/null || true
+    echo "cp -R $CACHE_DIR/$dir $CACHED_DIR"
+    cp -R $CACHE_DIR/$dir $CACHED_DIR &> /dev/null || true
   done
 bpwatch stop restore_cache