Skip to content

Commit

Permalink
fix(linkMans): return the promise!
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Mar 8, 2018
1 parent 7be31bd commit 5eccc7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function binLinks (pkg, folder, global, opts, cb) {
if (gnm) opts.log.silly('linkStuff', opts.pkgId, 'is installed into a global node_modules')
if (gtop) opts.log.silly('linkStuff', opts.pkgId, 'is installed into the top-level global node_modules')

BB.join(
return BB.join(
linkBins(pkg, folder, parent, gtop, opts),
linkMans(pkg, folder, parent, gtop, opts)
).asCallback(cb)
Expand Down Expand Up @@ -130,7 +130,7 @@ function linkMans (pkg, folder, parent, gtop, opts) {
return set[path.basename(man)] === man
})

BB.map(manpages, man => {
return BB.map(manpages, man => {
if (typeof man !== 'string') return
opts.log.silly('linkMans', 'preparing to link', man)
var parseMan = man.match(/(.*\.([0-9]+)(\.gz)?)$/)
Expand Down

0 comments on commit 5eccc7f

Please sign in to comment.