Skip to content

Commit

Permalink
Merge pull request #105 from snyk/fix/restore_system_proxy
Browse files Browse the repository at this point in the history
fix: default initialization for env
  • Loading branch information
PeterSchafer authored Nov 3, 2022
2 parents 4743e6b + f7c9c04 commit eebabc9
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 @@ -4,7 +4,7 @@ export function execute(command: string,
args: string[],
options?: { cwd?: string, env?: any },
shell: boolean = false): Promise<string> {
const spawnOptions: childProcess.SpawnOptions = { shell };
const spawnOptions: childProcess.SpawnOptions = { shell, env: process.env };
if (options?.cwd) {
spawnOptions.cwd = options.cwd;
}
Expand Down

0 comments on commit eebabc9

Please sign in to comment.