File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -108,12 +108,13 @@ export function getDefaultPowerShellPath(
108
108
return ! platformDetails . isOS64Bit || platformDetails . isProcess64Bit
109
109
? System32PowerShellPath
110
110
: SysnativePowerShellPath ;
111
- } if ( platformDetails . operatingSystem === OperatingSystem . MacOS ) {
111
+ }
112
+ if ( platformDetails . operatingSystem === OperatingSystem . MacOS ) {
112
113
// 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 ;
116
- }
114
+ powerShellExePath = macOSExePath ;
115
+ if ( ! fs . existsSync ( macOSExePath ) && fs . existsSync ( macOSPreviewExePath ) ) {
116
+ powerShellExePath = macOSPreviewExePath ;
117
+ }
117
118
} else if ( platformDetails . operatingSystem === OperatingSystem . Linux ) {
118
119
// Always default to the stable version of PowerShell (if installed) but handle case of only Preview installed
119
120
// as well as the Snaps case - https://snapcraft.io/
You can’t perform that action at this time.
0 commit comments