Permalink
Browse files

Merge pull request #34 from ryanbrainard/cat-npm-debug-log

Cat npm-debug.log on exit
  • Loading branch information...
2 parents 427bd1e + 9846540 commit 06f629ce1d3517302f1d7d5bf89d214ef4b1600e @zeke zeke committed Mar 24, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 bin/compile
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

0 comments on commit 06f629c

Please sign in to comment.