Browse files

Resolve paths, rather than appending to cwd, for full path support.

  • Loading branch information...
1 parent 15a9803 commit 3f48373c7cc9cfce643c2e103258c766f63af793 @jaredhanson jaredhanson committed Apr 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 nodemon.js
View
2 nodemon.js
@@ -212,7 +212,7 @@ function getNodemonArgs() {
app = null;
for (; i < len; i++) {
- if (existsSync(dir + '/' + args[i])) {
+ if (existsSync(path.resolve(dir, args[i]))) {
// double check we didn't use the --watch or -w opt before this arg
if (args[i-1] && (args[i-1] == '-w' || args[i-1] == '--watch')) {
// ignore

0 comments on commit 3f48373

Please sign in to comment.