mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-24 19:56:37 +00:00
Merge pull request #2351 from resin-io/fix-username-spaces-diskpart
fix(diskpart): Fix diskpart argv when tmpdir contains spaces
This commit is contained in:
commit
3083f5fd55
@ -69,7 +69,7 @@ const runDiskpart = (commands, callback) => {
|
|||||||
}, (writeError) => {
|
}, (writeError) => {
|
||||||
debug('write %s:', filename, writeError || 'OK')
|
debug('write %s:', filename, writeError || 'OK')
|
||||||
|
|
||||||
childProcess.exec(`diskpart /s ${filename}`, (execError, stdout, stderr) => {
|
childProcess.execFile('diskpart', [ '/s', filename ], (execError, stdout, stderr) => {
|
||||||
debug('stdout:', stdout)
|
debug('stdout:', stdout)
|
||||||
debug('stderr:', stderr)
|
debug('stderr:', stderr)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user