mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-08 07:37:48 +02:00
fix(opencode): snapshot invocation environments
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
|
||||
function resolveInvocationEnvironment(options = {}) {
|
||||
if (Object.prototype.hasOwnProperty.call(options, 'env')) {
|
||||
return options.env || {};
|
||||
return { ...(options.env || {}) };
|
||||
}
|
||||
|
||||
if (typeof options.homeDir === 'string' && options.homeDir.trim() !== '') {
|
||||
return {};
|
||||
}
|
||||
|
||||
return process.env;
|
||||
return { ...process.env };
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user