Skip to content

Commit 768bacf

Browse files
authored
Update platform.ts
1 parent b15caad commit 768bacf

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
@@ -108,11 +108,11 @@ export function getDefaultPowerShellPath(
108108
return !platformDetails.isOS64Bit || platformDetails.isProcess64Bit
109109
? System32PowerShellPath
110110
: SysnativePowerShellPath;
111-
} if (platformDetails.operatingSystem === OperatingSystem.MacOS) {
111+
} if (platformDetails.operatingSystem === OperatingSystem.MacOS) {
112112
// Always default to the stable version of PowerShell (if installed) but handle case of only Preview installed
113-
powerShellExePath = macOSExePath;
114-
if (!fs.existsSync(macOSExePath) && fs.existsSync(macOSPreviewExePath)) {
115-
powerShellExePath = macOSPreviewExePath;
113+
powerShellExePath = macOSExePath;
114+
if (!fs.existsSync(macOSExePath) && fs.existsSync(macOSPreviewExePath)) {
115+
powerShellExePath = macOSPreviewExePath;
116116
}
117117
} else if (platformDetails.operatingSystem === OperatingSystem.Linux) {
118118
// Always default to the stable version of PowerShell (if installed) but handle case of only Preview installed

0 commit comments

Comments
 (0)