Skip to content

Commit 35c5e10

Browse files
authored
Update platform.ts
1 parent 059c782 commit 35c5e10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/platform.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export function getDefaultPowerShellPath(
9090
return fs.lstatSync(item).isDirectory() && fs.existsSync(exePath);
9191
})
9292
.map((item) => ({
93-
versionName: `PowerShell Core ${path.parse(item).base} ${arch}`,
93+
versionName: `PowerShell ${path.parse(item).base} ${arch}`,
9494
exePath: path.join(item, "pwsh.exe"),
9595
}));
9696

@@ -208,7 +208,7 @@ export function getAvailablePowerShellExes(
208208
return fs.lstatSync(item).isDirectory() && fs.existsSync(exePath);
209209
})
210210
.map((item) => ({
211-
versionName: `PowerShell Core ${path.parse(item).base} ${arch}`,
211+
versionName: `PowerShell ${path.parse(item).base} ${arch}`,
212212
exePath: path.join(item, "pwsh.exe"),
213213
}));
214214

@@ -229,7 +229,7 @@ export function getAvailablePowerShellExes(
229229
exePaths.forEach((exePath) => {
230230
if (fs.existsSync(exePath)) {
231231
paths.push({
232-
versionName: "PowerShell Core" + (/-preview/.test(exePath) ? " Preview" : ""),
232+
versionName: "PowerShell " + (/-preview/.test(exePath) ? " Preview" : ""),
233233
exePath,
234234
});
235235
}

0 commit comments

Comments
 (0)