Skip to content

Commit 12e15ad

Browse files
rjmholtTylerLeonhardt
authored andcommitted
Fix bug finding Windows PowerShell (#2252)
1 parent 52bf094 commit 12e15ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export function getDefaultPowerShellPath(
9494
exePath: path.join(item, "pwsh.exe"),
9595
}));
9696

97-
if (psCorePaths) {
97+
if (psCorePaths && psCorePaths.length > 0) {
9898
return powerShellExePath = psCorePaths[0].exePath;
9999
}
100100
}

0 commit comments

Comments
 (0)