Fix Unix binary execution

This commit is contained in:
2020-02-11 19:43:10 -06:00
parent f4f9636405
commit d69515506a

View File

@@ -296,8 +296,10 @@ module.exports.executeAsync = (command, args=[]) => {
};
if (working) {
processOptions.cwd = working;
if (os.platform() !== 'win32') {
cmd = './' + cmd;
}
}
const process = new spawn(cmd, args, processOptions);
const pid = process.pid;