Commit 5d6bb2c7 authored by David Dollar's avatar David Dollar

clean up for debugging

parent bf3d70b0
#!/usr/bin/env bash #!/usr/bin/env bash
# bin/compile <build-dir> <cache-dir> # bin/compile <build-dir> <cache-dir>
# fail fast # clean up leaking environment
set -e unset GIT_DIR
function error() { function error() {
echo " ! $*" echo " ! $*"
...@@ -24,7 +24,7 @@ function indent() { ...@@ -24,7 +24,7 @@ function indent() {
esac esac
} }
run_npm() { function run_npm() {
command="$1" command="$1"
HOME="$BUILD_DIR" $VENDORED_NODE/bin/node $VENDORED_NPM/cli.js $command 2>&1 | indent HOME="$BUILD_DIR" $VENDORED_NODE/bin/node $VENDORED_NPM/cli.js $command 2>&1 | indent
...@@ -34,9 +34,6 @@ run_npm() { ...@@ -34,9 +34,6 @@ run_npm() {
fi fi
} }
# clean up leaking environment
unset GIT_DIR
function manifest_versions() { function manifest_versions() {
curl "http://${S3_BUCKET}.s3.amazonaws.com/manifest.${1}" -s -o - | tr -s '\n' ' ' curl "http://${S3_BUCKET}.s3.amazonaws.com/manifest.${1}" -s -o - | tr -s '\n' ' '
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment