Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Cat npm-debug.log on exit #34

Merged
merged 1 commit into from Mar 24, 2013
Jump to file or symbol
Failed to load files and symbols.
+8 −0
Split
View
@@ -101,6 +101,14 @@ function package_download() {
curl $package -s -o - | tar xzf - -C $location
}
+function cat_npm_debug_log() {
+ if [ -f $BUILD_DIR/npm-debug.log ]; then
+ cat $BUILD_DIR/npm-debug.log
+ fi
+}
+
+trap cat_npm_debug_log EXIT
+
bootstrap_node=$(mktmpdir bootstrap_node)
package_download "nodejs" "0.4.7" $bootstrap_node