Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cat npm-debug.log on exit

  • Loading branch information...
commit 984654096e954b986a191e6c285537db66bb1bb1 1 parent 427bd1e
@ryanbrainard authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.