diff --git a/src/platform.ts b/src/platform.ts index 7016da90fe..b1109f75de 100644 --- a/src/platform.ts +++ b/src/platform.ts @@ -73,7 +73,7 @@ export function getDefaultPowerShellPath( } else if (platformDetails.operatingSystem == OperatingSystem.MacOS) { powerShellExePath = "/usr/local/bin/powershell"; - if (fs.existsSync("/usr/loca/bin/pwsh")) { + if (fs.existsSync("/usr/local/bin/pwsh")) { powerShellExePath = "/usr/local/bin/pwsh"; } }