1 parent d8b7182 commit 51934fdCopy full SHA for 51934fd
1 file changed
src/utils/functions.ts
@@ -43,7 +43,7 @@ export function resolvePathWithVariables(pathWithVariables: string) {
43
export function addVariablesToPath(pathWithoutVariables: string) {
44
let result = pathWithoutVariables;
45
for (const [key, value] of Object.entries(process.env)) {
46
- if (!value || !path.isAbsolute(value) || value === '/' || key === 'HOME' || key === 'PATH' || key === 'SHELL' || key === 'PWD') {
+ if (!value || !path.isAbsolute(value) || value === '/' || value === homeDirectory || key === 'HOME' || key === 'PATH' || key === 'SHELL' || key === 'PWD') {
47
continue;
48
}
49
0 commit comments