Skip to content

Commit

Permalink
mkdir typo: p is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Oct 4, 2011
1 parent 128e066 commit 8c62fd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/utils/mkdir-p.js
Expand Up @@ -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_()
}

Expand Down

0 comments on commit 8c62fd1

Please sign in to comment.