Skip to content

Commit 37a5dff

Browse files
bsbsclifton
authored andcommitted
Escape path passed into spawn so npm start works if there are spaces in the path. See: nodejs/node#6803
Fixes: brave#8516
1 parent 4295f42 commit 37a5dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const options = {
77
stdio: 'inherit',
88
shell: true
99
}
10-
const muon = spawn('electron', [path.join(__dirname, '..')].concat(process.argv.slice(2)), options)
10+
const muon = spawn('electron', [`"${path.join(__dirname, '..')}"`].concat(process.argv.slice(2)), options)
1111

1212
muon.on('error', (err) => {
1313
console.error(`could not start muon ${err}`)

0 commit comments

Comments
 (0)