Skip to content

Commit

Permalink
fix env var casing
Browse files Browse the repository at this point in the history
  • Loading branch information
brianignacio5 committed Nov 20, 2024
1 parent 79ea7ec commit da0570c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1157,8 +1157,8 @@ export async function appendIdfAndToolsToPath(curWorkspace: vscode.Uri) {
if (idfToolsExportVars) {
try {
for (const envVar in idfToolsExportVars) {
if (envVar === pathNameInEnv) {
modifiedEnv[pathNameInEnv] = idfToolsExportVars[pathNameInEnv]
if (envVar.toUpperCase() === pathNameInEnv.toUpperCase()) {
modifiedEnv[pathNameInEnv] = idfToolsExportVars[envVar]
.replace("%PATH%", modifiedEnv[pathNameInEnv])
.replace("$PATH", modifiedEnv[pathNameInEnv]);
} else {
Expand Down

0 comments on commit da0570c

Please sign in to comment.