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
This commit is contained in:
Raghu
2016-02-01 11:02:01 +05:30
parent 6ee298dc7d
commit 54433ee555

View File

@@ -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."))
}