We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52bf094 commit 12e15adCopy full SHA for 12e15ad
1 file changed
src/platform.ts
@@ -94,7 +94,7 @@ export function getDefaultPowerShellPath(
94
exePath: path.join(item, "pwsh.exe"),
95
}));
96
97
- if (psCorePaths) {
+ if (psCorePaths && psCorePaths.length > 0) {
98
return powerShellExePath = psCorePaths[0].exePath;
99
}
100
0 commit comments