Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 67ae79d

Browse files
authored
Include process.env in rustup execution env (#91)
1 parent 2586777 commit 67ae79d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ const PERIODIC_UPDATE_CHECK_MILLIS = 6 * 60 * 60 * 1000
1818

1919
async function exec(command) {
2020
return new Promise((resolve, reject) => {
21-
cp.exec(command, { env: { PATH: envPath() } }, (err, stdout, stderr) => {
21+
const env = process.env
22+
env.PATH = envPath()
23+
cp.exec(command, { env }, (err, stdout, stderr) => {
2224
if (err != null) {
2325
reject(err)
2426
return

0 commit comments

Comments
 (0)