From a434b93effaba1a77d17aa080d7ff3560eba1825 Mon Sep 17 00:00:00 2001 From: Alexey Timanovsky Date: Fri, 16 Jun 2017 15:51:31 +0300 Subject: [PATCH] Bugfixes --- bin/compile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/compile b/bin/compile index 644f767..aa6619c 100755 --- a/bin/compile +++ b/bin/compile @@ -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