From 54433ee5556bd2b81b2b04bc20e46870e1cc3b9c Mon Sep 17 00:00:00 2001 From: Raghu Date: Mon, 1 Feb 2016 11:02:01 +0530 Subject: [PATCH] Quote phantomPath so that it doesn't fail on window Quote phantomPath so that it doesn't fail on windows when path has spaces. Fixes #236 --- lib/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli.js b/lib/cli.js index fae095048f..8d9e7b75c6 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -182,7 +182,7 @@ function createCheckPhantom(_phantomPath) { } // If we have phantompath, see if its version satisfies our requirements - exec(phantomPath + ' --version', function(err, stdout, stderr) { + exec('"' + phantomPath + '" --version', function(err, stdout, stderr) { if (err) { next(new Error("Could not find phantomjs at the specified path.")) }