Permalink
Browse files

[fix] fs.existsSync was moved to fs.existsSync

  • Loading branch information...
1 parent 7bf967b commit 992d0bf39c0293435a0d511a4468152569a64a47 @jfhbrook jfhbrook committed Jul 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/parser.js
View
@@ -172,12 +172,12 @@ function envFileContent(cmdOptions) {
envFiles = cmdOptions.env.split(',');
for (var i = 0; i < envFiles.length; i++ ) {
filePath = path.normalize(envFiles[i]);
- if (path.existsSync(filePath)) {
+ if (fs.existsSync(filePath)) {
fileContent += fs.readFileSync(filePath, 'utf8');
fileContent += "\n";
}
}
- } else if (path.existsSync(parser.cmdWorkingDir(cmdOptions) + '/.env')) {
+ } else if (fs.existsSync(parser.cmdWorkingDir(cmdOptions) + '/.env')) {
filePath = parser.cmdWorkingDir(cmdOptions) + '/.env';
fileContent = fs.readFileSync(filePath, 'utf8');
}

0 comments on commit 992d0bf

Please sign in to comment.