From 5d6bb2c7cf0d1db3e5c7414713c4e7238c95f172 Mon Sep 17 00:00:00 2001 From: David Dollar Date: Fri, 13 Jan 2012 13:56:04 -0800 Subject: [PATCH] clean up for debugging --- bin/compile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bin/compile b/bin/compile index 28372da5b..b3222795a 100755 --- a/bin/compile +++ b/bin/compile @@ -1,8 +1,8 @@ #!/usr/bin/env bash # bin/compile -# fail fast -set -e +# clean up leaking environment +unset GIT_DIR function error() { echo " ! $*" @@ -24,7 +24,7 @@ function indent() { esac } -run_npm() { +function run_npm() { command="$1" HOME="$BUILD_DIR" $VENDORED_NODE/bin/node $VENDORED_NPM/cli.js $command 2>&1 | indent @@ -34,9 +34,6 @@ run_npm() { fi } -# clean up leaking environment -unset GIT_DIR - function manifest_versions() { curl "http://${S3_BUCKET}.s3.amazonaws.com/manifest.${1}" -s -o - | tr -s '\n' ' ' }