Skip to content

Commit 03f8400

Browse files
committed
Wrap toolPath in quotes instead of escaping spaces
For better Windows support. Fixes #850
1 parent 232dbb1 commit 03f8400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lifecycleScripts/install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function installPrebuilt() {
5252

5353
function pathForTool(name) {
5454
var toolPath = path.resolve(".", "node_modules", ".bin", name);
55-
toolPath = toolPath.replace(/\s/g, "\\$&");
55+
toolPath = '"' + toolPath + '"';
5656
return toolPath;
5757
}
5858

0 commit comments

Comments
 (0)