We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6253606 commit 95d69f2Copy full SHA for 95d69f2
1 file changed
libs/odmRunner.js
@@ -30,9 +30,15 @@ module.exports = {
30
assert(projectName !== undefined, "projectName must be specified");
31
assert(options["project-path"] !== undefined, "project-path must be defined");
32
33
- const command = '"' + path.join(config.odm_path, os.platform() === "win32" ? "run.bat" : "run.sh") + '"',
+ let command = path.join(config.odm_path, os.platform() === "win32" ? "run.bat" : "run.sh"),
34
params = [];
35
36
+ if (os.platform() === "win32"){
37
+ // On Windows, we need to add quotes around the file path
38
+ // otherwise it doesn't work when there are spaces in the path
39
+ command = `"${command}"`;
40
+ }
41
+
42
for (var name in options){
43
let value = options[name];
44
0 commit comments