mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +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) => {
|
||||
exec(command, (error, stdout, stderr) => {
|
||||
exec(command, { cwd: process.cwd() }, (error, stdout, stderr) => {
|
||||
returnData.stdout = stdout.trim();
|
||||
returnData.stderr = stderr.trim();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user