Skip to content

Commit

Permalink
fix gulpfile on Windows when the working directory contains spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
hegemonic committed Oct 30, 2014
1 parent a2e119a commit d2e5dd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ gulp.task('lint', function() {
});

gulp.task('test-node', function(cb) {
var cmd = util.format('%s %s -T', options.nodePath, options.nodeBin);
var cmd = util.format('%s "%s" -T', options.nodePath, options.nodeBin);
exec(cmd, execCb.bind(null, cb));
});

gulp.task('test-rhino', function(cb) {
var cmd = util.format('%s -T -q "parser=rhino"', options.rhinoBin);
var cmd = util.format('"%s" -T -q "parser=rhino"', options.rhinoBin);
exec(cmd, execCb.bind(null, cb));
});

gulp.task('test-rhino-esprima', function(cb) {
var cmd = util.format('%s -T -q "parser=esprima"', options.rhinoBin);
var cmd = util.format('"%s" -T -q "parser=esprima"', options.rhinoBin);
exec(cmd, execCb.bind(null, cb));
});

Expand Down

0 comments on commit d2e5dd8

Please sign in to comment.