Fix Unix binary execution

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

View File

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