mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-23 23:42:24 +00:00
Surround diskpart script in double quotes
This commit is contained in:
parent
95d8d2fe8f
commit
0d06524162
@ -12,7 +12,7 @@ DISK_IO_FLAGS = 'rs+'
|
|||||||
exports.rescanDrives = (callback) ->
|
exports.rescanDrives = (callback) ->
|
||||||
return callback() if not IS_WINDOWS
|
return callback() if not IS_WINDOWS
|
||||||
diskpartRescanScriptPath = path.join(__dirname, 'scripts', 'diskpart_rescan')
|
diskpartRescanScriptPath = path.join(__dirname, 'scripts', 'diskpart_rescan')
|
||||||
childProcess.exec "diskpart /s #{diskpartRescanScriptPath}", {}, (error) ->
|
childProcess.exec "diskpart /s \"#{diskpartRescanScriptPath}\"", {}, (error) ->
|
||||||
console.log("DISKPART RESULT: #{arguments}")
|
console.log("DISKPART RESULT: #{arguments}")
|
||||||
return callback(error)
|
return callback(error)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user