mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
Execute commands of "ExecuteCommand" node by default in folder the
process got started from
This commit is contained in:
parent
15e3481b40
commit
4664ed1209
|
@ -30,7 +30,7 @@ function execPromise(command: string): Promise<IExecReturnData> {
|
|||
};
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
exec(command, (error, stdout, stderr) => {
|
||||
exec(command, { cwd: process.cwd() }, (error, stdout, stderr) => {
|
||||
returnData.stdout = stdout.trim();
|
||||
returnData.stderr = stderr.trim();
|
||||
|
||||
|
|
Loading…
Reference in a new issue