diff --git a/helpers.js b/helpers.js index fef1fc3..95abc90 100644 --- a/helpers.js +++ b/helpers.js @@ -174,11 +174,10 @@ module.exports.executeMount = (directory, version, storageType, location, exitCa } else if (storageType.toLowerCase() === 'siaprime') { args.push('-sp'); } - if (os.platform() === 'linux') { + if ((os.platform() === 'linux') || (os.platform() === 'darwin')) { args.push('-o'); args.push('big_writes'); - } - if (os.platform() === 'win32') { + } else if (os.platform() === 'win32') { args.push('-hidden'); } args.push(location); @@ -454,9 +453,11 @@ module.exports.stopProcessByPID = pid => { windowsHide: true, }; - const command = (os.platform() === 'win32') ? 'taskkill.exe' : ''; + const command = (os.platform() === 'win32') ? 'taskkill.exe' : 'kill'; const args = []; - args.push('/PID'); + if (os.platform() === 'win32') { + args.push('/PID'); + } args.push(pid); const process = new spawn(command, args, processOptions);