Skip to content

Commit

Permalink
Quote phantomPath so that it doesn't fail on window
Browse files Browse the repository at this point in the history
Quote phantomPath so that it doesn't fail on windows when path has spaces. Fixes mermaid-js#236
  • Loading branch information
raghur committed Feb 1, 2016
1 parent 6ee298d commit 54433ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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."))
}
Expand Down

0 comments on commit 54433ee

Please sign in to comment.