Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
fix(log): Fix formatting of invalid wd warning (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
billyjanitsch authored and zkat committed Mar 7, 2018
1 parent ca5f920 commit ced38f3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ function lifecycle (pkg, stage, wd, opts) {

if ((wd.indexOf(opts.dir) !== 0 || _incorrectWorkingDirectory(wd, pkg)) &&
!opts.unsafePerm && pkg.scripts[stage]) {
opts.log.warn('lifecycle', logid(pkg, stage), 'cannot run in wd',
'%s %s (wd=%s)', pkg._id, pkg.scripts[stage], wd
)
opts.log.warn('lifecycle', logid(pkg, stage), 'cannot run in wd', pkg._id, pkg.scripts[stage], `(wd=${wd})`)
return resolve()
}

Expand Down

0 comments on commit ced38f3

Please sign in to comment.