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 4cf4a54 commit a434b93
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ echo "ENV_DIR: $ENV_DIR"
ls $ENV_DIR

if [ -f $ENV_DIR/BUILDPACK_PATH ]; then
BUILDPACK_PATH =`cat $ENV_DIR/BUILDPACK_PATH`
BUILDPACK_PATH=`cat $ENV_DIR/BUILDPACK_PATH`
echo "-----> Subdir buildpack in $BUILDPACK_PATH"
if [ -d $BUILD_DIR/$BUILDPACK_PATH ]; then
echo "-----> Subdir buildpack in $BUILDPACK_PATH"
echo " creating cache: $CACHE_DIR"
mkdir -p $CACHE_DIR
mkdir -p $CACHE_DIR
echo " moving working dir: $BUILDPACK_PATH to cache"
TMP_DIR = `mktemp -d $CACHE_DIR/subdirXXXXX`
TMP_DIR=`mktemp -d $CACHE_DIR/subdirXXXXX`
cp -R $BUILD_DIR/$BUILDPACK_PATH/ $TMP_DIR
rm -rf $BUILD_DIR
mkdir -p $BUILD_DIR
cp -R $TMP_DIR/ $BUILD_DIR/
ls $BUILD_DIR
exit 0
rm -rf $BUILD_DIR
mkdir -p $BUILD_DIR
cp -R $TMP_DIR/ $BUILD_DIR/
ls $BUILD_DIR
exit 0
fi
fi

Expand Down

0 comments on commit a434b93

Please sign in to comment.