diff options
author | isaacs <i@izs.me> | 2011-10-04 11:02:39 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-10-04 11:02:39 +0400 |
commit | 8c62fd1b75d3a704757dcd82ddf27e70acea0c79 (patch) | |
tree | 1d27cb8fac60e8f582aeb920746a6164e66394fa | |
parent | 128e0666bbcd770a28592472d9afc1051c487b4e (diff) |
mkdir typo: p is not defined
-rw-r--r-- | lib/utils/mkdir-p.js | 3 |
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_() } |