Skip to content

Commit af96894

Browse files
authored
Update platform.ts
1 parent 40f1649 commit af96894

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/platform.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ export function getDefaultPowerShellPath(
105105
? SysWow64PowerShellPath
106106
: System32PowerShellPath;
107107
}
108-
return !platformDetails.isOS64Bit || platformDetails.isProcess64Bit
109-
? System32PowerShellPath
110-
: SysnativePowerShellPath;
111-
} if (platformDetails.operatingSystem === OperatingSystem.MacOS) {
108+
return !platformDetails.isOS64Bit || platformDetails.isProcess64Bit
109+
? System32PowerShellPath
110+
: SysnativePowerShellPath;
111+
} if (platformDetails.operatingSystem === OperatingSystem.MacOS) {
112112
// Always default to the stable version of PowerShell (if installed) but handle case of only Preview installed
113113
powerShellExePath = macOSExePath;
114114
if (!fs.existsSync(macOSExePath) && fs.existsSync(macOSPreviewExePath)) {

0 commit comments

Comments
 (0)