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

Commit

Permalink
Fix the stupid man -w stuff that makes the install fail on linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed May 16, 2010
1 parent 327404c commit c53381a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/install-docs.js
Expand Up @@ -15,11 +15,10 @@ var event = process.env.npm_lifecycle_event

log(event, "docs")

exec("man", ["-w"], function (er, code, stdout, stderr) {
if (er) throw er
var manpath = stdout.trim().split(":")
exec("manpath", [], function (er, code, stdout, stderr) {
var manpath = er ? [] : stdout.trim().split(":")
if (manpath.indexOf(path.dirname(manTarget)) === -1) {
log("It seems " + manTarget + " is not visible to man", "!")
log("It seems " + manTarget + " might not be visible to man", "!")
log("For greater justice, please add it to your man path", "!")
log("See: man man", "!")
}
Expand Down

0 comments on commit c53381a

Please sign in to comment.