mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-08 01:56:42 +02:00
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:
@@ -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."))
|
||||
}
|
||||
|
Reference in New Issue
Block a user