Skip to content

Commit

Permalink
Handle absolute paths in Jakefiles specified at command-line.
Browse files Browse the repository at this point in the history
  • Loading branch information
mde committed Nov 14, 2011
1 parent 0d63912 commit 3b4b4f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/loader.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ Loader = function () {
fail('CoffeeScript is missing! Try `npm install coffee-script`'); 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); require(jakefile);
}; };


Expand Down

0 comments on commit 3b4b4f5

Please sign in to comment.