Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Jan 13, 2012
1 parent 8b320ac commit 66cdced
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ S3_BUCKET="heroku-buildpack-nodejs"
BUILD_DIR=$1
CACHE_DIR=$2
LP_DIR=`cd $(dirname $0); cd ..; pwd`
CACHE_STORE_DIR=$CACHE_DIR"/node_modules/$NPM_VERSION"
CACHE_TARGET_DIR=$BUILD_DIR"/node_modules"
CACHE_STORE_DIR="$CACHE_DIR/node_modules/$NPM_VERSION"
CACHE_TARGET_DIR="$BUILD_DIR/node_modules"

# s3 packages
NODE_PACKAGE="http://${S3_BUCKET}.s3.amazonaws.com/nodejs-${NODE_VERSION}.tgz"
Expand Down Expand Up @@ -77,7 +77,7 @@ if [ -d $CACHE_STORE_DIR ]; then
TEMP_NODE_MODULES_DIR=$(mktmpdir node_modules)

# move existing node_modules out of the way
if [ -f $CACHE_TARGET_DIR ]; then
if [ -d $CACHE_TARGET_DIR ]; then
echo "moving out"
mv $CACHE_TARGET_DIR $TEMP_NODE_MODULES_DIR/
fi
Expand Down

0 comments on commit 66cdced

Please sign in to comment.