Permalink
Browse files

Merge pull request #81 from jaredhanson/full-path

Resolve paths, rather than appending to cwd, for full path support.
  • Loading branch information...
2 parents 15a9803 + 3f48373 commit 76420d3386aa33f7b5d8bb03a1650826646c0eec @remy remy committed Apr 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 nodemon.js
View
@@ -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 76420d3

Please sign in to comment.