From d2e5dd888a1fb25dab98c08a08bdd2ac2608db2e Mon Sep 17 00:00:00 2001 From: Jeff Williams Date: Thu, 30 Oct 2014 12:02:29 -0700 Subject: [PATCH] fix gulpfile on Windows when the working directory contains spaces --- gulpfile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 8a27fcaf..e54c4689 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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)); });