From 4743894ca48704b2188c06c3d1f66704bc466633 Mon Sep 17 00:00:00 2001 From: David Dollar Date: Thu, 12 Jan 2012 17:48:46 -0800 Subject: [PATCH] remove debug --- bin/compile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/compile b/bin/compile index 9dd1e65e9..0c2e29637 100755 --- a/bin/compile +++ b/bin/compile @@ -73,23 +73,23 @@ export CPPPATH="$INCLUDE_PATH" # unpack existing cache if [ -d $CACHE_STORE_DIR ]; then - echo "unpacking cache" + # generate a place to put node_modules TEMP_NODE_MODULES_DIR=$(mktmpdir node_modules) # move existing node_modules out of the way if [ -d $CACHE_TARGET_DIR ]; then - echo "moving out" mv $CACHE_TARGET_DIR $TEMP_NODE_MODULES_DIR/ fi + # copy the cached node_modules in mkdir -p $CACHE_TARGET_DIR cp -R $CACHE_STORE_DIR/* $CACHE_TARGET_DIR/ # move existing node_modules back into place if [ -d $TEMP_NODE_MODULES_DIR/node_modules ]; then - echo "moving back" cp -R $TEMP_NODE_MODULES_DIR/node_modules/* $CACHE_TARGET_DIR/ fi + fi # install dependencies with npm