mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Merge pull request #286 from raghur/master
Quote phantomPath so that it doesn't fail on window
This commit is contained in:
commit
803916c99b
@ -182,7 +182,7 @@ function createCheckPhantom(_phantomPath) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If we have phantompath, see if its version satisfies our requirements
|
// 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) {
|
if (err) {
|
||||||
next(new Error("Could not find phantomjs at the specified path."))
|
next(new Error("Could not find phantomjs at the specified path."))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user