Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
timanovsky committed Jun 16, 2017
1 parent 5a4644e commit 56e58f0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ if [ -f $ENV_DIR/BUILDPACK_PATH ]; then
echo "-----> Subdir buildpack in $BUILDPACK_PATH"
echo " creating cache: $CACHE_DIR"
mkdir -p $CACHE_DIR
echo " moving working dir: $BUILDPACK_PATH to cache"
TMP_DIR=`mktemp -d $CACHE_DIR/subdirXXXXX`
cp -Rv $BUILD_DIR/$BUILDPACK_PATH/. $TMP_DIR/
rm -rfv $BUILD_DIR
echo " created tmp dir: $TMP_DIR"
echo " moving working dir: $BUILDPACK_PATH to cache"
cp -R $BUILD_DIR/$BUILDPACK_PATH/. $TMP_DIR/
echo " cleaning build dir"
rm -rf $BUILD_DIR
echo " recreating $BUILD_DIR"
mkdir -p $BUILD_DIR
echo " copying preserver work dir from cache to build dir"
cp -Rv $TMP_DIR/. $BUILD_DIR/
ls $BUILD_DIR
echo " cleaning tmp dir"
rm -rfv $TMP_DIR
exit 0
fi
fi
Expand Down

0 comments on commit 56e58f0

Please sign in to comment.