Skip to content

Commit eb06392

Browse files
authored
Update platform.ts
1 parent aea0c5d commit eb06392

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/platform.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ export function getDefaultPowerShellPath(
7676
(platformDetails.isProcess64Bit ? process.env["ProgramFiles(x86)"] : process.env.ProgramFiles)
7777
+ "\\PowerShell";
7878
} else {
79-
8079
psCoreInstallPath =
8180
(platformDetails.isProcess64Bit ? process.env.ProgramFiles : process.env.ProgramW6432) + "\\PowerShell";
8281
}
82+
8383
if (fs.existsSync(psCoreInstallPath)) {
8484
const arch = platformDetails.isProcess64Bit ? "(x64)" : "(x86)";
8585
const psCorePaths =
@@ -98,6 +98,7 @@ export function getDefaultPowerShellPath(
9898
return powerShellExePath = psCorePaths[0].exePath;
9999
}
100100
}
101+
101102
if (use32Bit) {
102103
powerShellExePath =
103104
platformDetails.isOS64Bit && platformDetails.isProcess64Bit

0 commit comments

Comments
 (0)