chore: fix env spread lint

This commit is contained in:
Peter Steinberger
2025-12-26 02:02:45 +00:00
parent ad91a09b07
commit cd81348ca5

View File

@@ -133,12 +133,13 @@ export function createBashTool(
const workdir = params.workdir?.trim() || process.cwd();
const { shell, args: shellArgs } = getShellConfig();
const env = params.env ? { ...process.env, ...params.env } : process.env;
const child: ChildProcessWithoutNullStreams = spawn(
shell,
[...shellArgs, params.command],
{
cwd: workdir,
env: { ...process.env, ...(params.env ?? {}) },
env,
detached: true,
stdio: ["pipe", "pipe", "pipe"],
},