Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-10-04 11:02:39 +0400
committerisaacs <i@izs.me>2011-10-04 11:02:39 +0400
commit8c62fd1b75d3a704757dcd82ddf27e70acea0c79 (patch)
tree1d27cb8fac60e8f582aeb920746a6164e66394fa
parent128e0666bbcd770a28592472d9afc1051c487b4e (diff)
mkdir typo: p is not defined
-rw-r--r--lib/utils/mkdir-p.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/utils/mkdir-p.js b/lib/utils/mkdir-p.js
index 212e50295..6fe169d12 100644
--- a/lib/utils/mkdir-p.js
+++ b/lib/utils/mkdir-p.js
@@ -29,7 +29,8 @@ function mkdir (ensure, mode, uid, gid, cb_) {
// mkdir("/") should not do anything, since that always exists.
if (!ensure
- || (process.platform === "win32" && p.match(/^[a-zA-Z]:(\\|\/)?$/))) {
+ || ( process.platform === "win32"
+ && ensure.match(/^[a-zA-Z]:(\\|\/)?$/))) {
return cb_()
}