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' ' ' }