Skip to content

Commit be41e5b

Browse files
Update src/platform.ts
Co-Authored-By: Tyler James Leonhardt <[email protected]>
1 parent 8e829bd commit be41e5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export function getDefaultPowerShellPath(
7171
// and the user's desire to run the x86 version of PowerShell
7272
if (platformDetails.operatingSystem === OperatingSystem.Windows) {
7373
const psCoreInstallPath =
74-
(!platformDetails.isProcess64Bit ? process.env.ProgramW6432 : process.env.ProgramFiles) + "\\PowerShell";
74+
(platformDetails.isProcess64Bit ? process.env.ProgramFiles : process.env.ProgramW6432) + "\\PowerShell";
7575
if (fs.existsSync(psCoreInstallPath)) {
7676
const arch = platformDetails.isProcess64Bit ? "(x64)" : "(x86)";
7777
const psCorePaths =

0 commit comments

Comments
 (0)