Permalink
Browse files

Handle absolute paths in Jakefiles specified at command-line.

  • Loading branch information...
1 parent 0d63912 commit 3b4b4f5a70fddcbddc8c38a927dc328222bb7ae3 @mde mde committed Nov 14, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/loader.js
View
@@ -56,7 +56,9 @@ Loader = function () {
fail('CoffeeScript is missing! Try `npm install coffee-script`');
}
}
- jakefile = path.join(process.cwd(), jakefile);
+ if (jakefile.indexOf('/') != 0) {
+ jakefile = path.join(process.cwd(), jakefile);
+ }
require(jakefile);
};

0 comments on commit 3b4b4f5

Please sign in to comment.