mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
Execute commands of "ExecuteCommand" node by default in folder the
process got started from
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user