diff --git a/lib/drive/drive.coffee b/lib/drive/drive.coffee index d3326a60..837065af 100644 --- a/lib/drive/drive.coffee +++ b/lib/drive/drive.coffee @@ -12,9 +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) -> - console.log("DISKPART RESULT: #{arguments}") - return callback(error) + childProcess.exec("diskpart /s \"#{diskpartRescanScriptPath}\"", {}, _.unary(callback)) exports.eraseMBR = (devicePath, callback) -> return callback() if not IS_WINDOWS