From b80a0987b2b613404f0e3695dfb2df2ce5ae5765 Mon Sep 17 00:00:00 2001 From: tanghuayu Date: Tue, 23 Apr 2024 09:53:13 +0800 Subject: [PATCH] Create a new object as the env for the ping process, without overwriting the main process env refs 166 --- lib/builder/linux.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder/linux.js b/lib/builder/linux.js index 865c6cd..766ebea 100644 --- a/lib/builder/linux.js +++ b/lib/builder/linux.js @@ -118,7 +118,7 @@ builder.getCommandArguments = function (target, config) { builder.getSpawnOptions = function () { return { shell: false, - env: Object.assign(process.env, {LANG: 'C'}), + env: Object.assign({}, process.env, { LANG: 'C' }), }; };