mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
manage better env variables spread to git child processes
This commit is contained in:
@@ -35,7 +35,7 @@ const { exec } = require("child_process");
|
||||
*/
|
||||
const runCommand = async (command) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
exec(command, (error, stdout, stderr) => {
|
||||
exec(command, { env: process.env }, (error, stdout) => {
|
||||
if (error) {
|
||||
console.log(red`error: ${ error.message }`);
|
||||
reject(error);
|
||||
|
||||
Reference in New Issue
Block a user