Browse files

cat npm-debug.log on exit

  • Loading branch information...
1 parent 427bd1e commit 984654096e954b986a191e6c285537db66bb1bb1 @ryanbrainard ryanbrainard committed Mar 21, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 bin/compile
View
8 bin/compile
@@ -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 9846540

Please sign in to comment.