Skip to content

Commit

Permalink
fix: do not overwrite values [CLI-543]
Browse files Browse the repository at this point in the history
  • Loading branch information
thisislawatts committed Oct 30, 2024
1 parent a204504 commit 8c6e315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sub-process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function execute(
args: string[],
options?,
): Promise<CmdOutput> {
const spawnOptions: any = { shell: true, env: process.env };
const spawnOptions: any = { shell: true, env: { ...process.env } };
if (options && options.cwd) {
spawnOptions.cwd = options.cwd;
}
Expand Down

0 comments on commit 8c6e315

Please sign in to comment.