File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,10 @@ export function getDefaultPowerShellPath(
76
76
( platformDetails . isProcess64Bit ? process . env [ "ProgramFiles(x86)" ] : process . env . ProgramFiles )
77
77
+ "\\PowerShell" ;
78
78
} else {
79
-
80
79
psCoreInstallPath =
81
80
( platformDetails . isProcess64Bit ? process . env . ProgramFiles : process . env . ProgramW6432 ) + "\\PowerShell" ;
82
81
}
82
+
83
83
if ( fs . existsSync ( psCoreInstallPath ) ) {
84
84
const arch = platformDetails . isProcess64Bit ? "(x64)" : "(x86)" ;
85
85
const psCorePaths =
@@ -98,6 +98,7 @@ export function getDefaultPowerShellPath(
98
98
return powerShellExePath = psCorePaths [ 0 ] . exePath ;
99
99
}
100
100
}
101
+
101
102
if ( use32Bit ) {
102
103
powerShellExePath =
103
104
platformDetails . isOS64Bit && platformDetails . isProcess64Bit
You can’t perform that action at this time.
0 commit comments