Surround diskpart script in double quotes

This commit is contained in:
Juan Cruz Viotti 2015-01-28 15:38:39 -04:00
parent 95d8d2fe8f
commit 0d06524162

View File

@ -12,7 +12,7 @@ DISK_IO_FLAGS = 'rs+'
exports.rescanDrives = (callback) ->
return callback() if not IS_WINDOWS
diskpartRescanScriptPath = path.join(__dirname, 'scripts', 'diskpart_rescan')
childProcess.exec "diskpart /s #{diskpartRescanScriptPath}", {}, (error) ->
childProcess.exec "diskpart /s \"#{diskpartRescanScriptPath}\"", {}, (error) ->
console.log("DISKPART RESULT: #{arguments}")
return callback(error)