Permalink
Browse files

use force if requested

  • Loading branch information...
1 parent dafc7d0 commit becde9df8dffd464a4c90ffdd5d402cb4db85abc @isaacs isaacs committed Apr 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/unbuild.js
View
@@ -53,7 +53,7 @@ function rmBins (pkg, folder, parent, top, cb) {
: path.resolve(parent, ".bin")
log.verbose([binRoot, pkg.bin], "binRoot")
asyncMap(Object.keys(pkg.bin), function (b, cb) {
- rm(path.resolve(binRoot, b), folder, cb)
+ rm(path.resolve(binRoot, b), !npm.config.get("force") && folder, cb)
}, cb)
}
@@ -72,6 +72,6 @@ function rmMans (pkg, folder, parent, top, cb) {
: pkg.name + "-" + bn)
+ "." + sxn + gz
)
- rm(manDest, folder, cb)
+ rm(manDest, !npm.config.get("force") && folder, cb)
}, cb)
}

0 comments on commit becde9d

Please sign in to comment.