Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

do not log if silent

  • Loading branch information...
commit c95cf086e5b97dbb48ff95a72517b203a8f29eab 1 parent 94df2f5
@Raynos Raynos authored isaacs committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/utils/lifecycle.js
View
5 lib/utils/lifecycle.js
@@ -1,4 +1,3 @@
-
exports = module.exports = lifecycle
exports.cmd = cmd
@@ -161,7 +160,9 @@ function runCmd (note, cmd, pkg, env, stage, wd, unsafe, cb) {
var user = unsafe ? null : npm.config.get("user")
, group = unsafe ? null : npm.config.get("group")
- console.log(note)
+ if (log.level !== 'silent') {
+ console.log(note)
+ }
log.verbose("unsafe-perm in lifecycle", unsafe)
if (process.platform === "win32") {
Please sign in to comment.
Something went wrong with that request. Please try again.