Only emit a warning if the envvar has changed (#245)
This commit is contained in:
parent
400b51b0c2
commit
23620afd0f
2
dist/main/index.js
vendored
2
dist/main/index.js
vendored
File diff suppressed because one or more lines are too long
@ -298,7 +298,7 @@ async function main() {
|
||||
*/
|
||||
function exportVariableAndWarn(key: string, value: string) {
|
||||
const existing = process.env[key];
|
||||
if (existing) {
|
||||
if (existing && existing !== value) {
|
||||
const old = JSON.stringify(existing);
|
||||
logWarning(`Overwriting existing environment variable ${key} (was: ${old})`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user