Execute commands of "ExecuteCommand" node by default in folder the

process got started from
This commit is contained in:
Jan Oberhauser 2019-06-24 07:51:07 +02:00
parent 15e3481b40
commit 4664ed1209

View file

@ -30,7 +30,7 @@ function execPromise(command: string): Promise<IExecReturnData> {
}; };
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
exec(command, (error, stdout, stderr) => { exec(command, { cwd: process.cwd() }, (error, stdout, stderr) => {
returnData.stdout = stdout.trim(); returnData.stdout = stdout.trim();
returnData.stderr = stderr.trim(); returnData.stderr = stderr.trim();