Skip to content

Commit 51934fd

Browse files
committed
fix: bugs with addVariablesToPath and ParsedResourceSettings
1 parent d8b7182 commit 51934fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/functions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function resolvePathWithVariables(pathWithVariables: string) {
4343
export function addVariablesToPath(pathWithoutVariables: string) {
4444
let result = pathWithoutVariables;
4545
for (const [key, value] of Object.entries(process.env)) {
46-
if (!value || !path.isAbsolute(value) || value === '/' || key === 'HOME' || key === 'PATH' || key === 'SHELL' || key === 'PWD') {
46+
if (!value || !path.isAbsolute(value) || value === '/' || value === homeDirectory || key === 'HOME' || key === 'PATH' || key === 'SHELL' || key === 'PWD') {
4747
continue;
4848
}
4949

0 commit comments

Comments
 (0)