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

Commit

Permalink
Dont' delete "." or ".." on deactivate. Just delete the regular files.
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed May 3, 2010
1 parent 5aa217d commit bb616dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install-docs.js
Expand Up @@ -18,7 +18,10 @@ fs.readdir(path.join(process.cwd(), "man"), function (er, docs) {
if (er) return
;(function R (doc) {
if (!doc) return
if (doc === "." || doc === "..") return R(docs.pop())
var target = path.join(process.installPrefix, "share/man/man1", "npm-"+doc)
target = target.replace(/npm-npm\.1$/, "npm.1")
log(target, event)
switch (event) {
case "activate":
rm( target
Expand Down

0 comments on commit bb616dd

Please sign in to comment.