Permalink
Browse files

Wrap Jakefile path in quotes on win32.

  • Loading branch information...
mde committed Mar 2, 2012
1 parent 6c03b3d commit aa8092c0c9dff466ee999fddb4897074dbdc464a
Showing with 7 additions and 2 deletions.
  1. +7 −2 bin/cli.js
View
@@ -14,7 +14,8 @@ var fs = require('fs')
, cmds
, opts
, usage
- , cmd;
+ , cmd
+ , filepath;
usage = ''
+ 'Geddy web framework for Node.js\n'
@@ -123,7 +124,11 @@ if (typeof opts.help != 'undefined') {
else {
// `geddy app foo` or `geddy resource bar` etc. -- run generators
if (cmds.length) {
- cmd = 'jake -t -f ' + __dirname + '/../Jakefile ';
+ filepath = __dirname + '/../Jakefile';
+ if (process.platform == 'win32') {
+ filepath = '"' + filepath + '"';
+ }
+ cmd = 'jake -t -f ' + filepath + ' ';
if (cmds[0] != 'secret' && !cmds[1]) {
throw new Error(cmds[0] + ' command requires another argument.');
}

0 comments on commit aa8092c

Please sign in to comment.