diff --git a/src/installer.ts b/src/installer.ts index dc4a253..1d1013e 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -116,10 +116,7 @@ export class DotnetCoreInstaller { } // process.env must be explicitly passed in for DOTNET_INSTALL_DIR to be used - let powershellPath = await io.which('pwsh', false); - if (powershellPath == '') { - powershellPath = await io.which('powershell', true); - } + const powershellPath = await io.which('pwsh', false) || await io.which('powershell', true); var options: ExecOptions = { listeners: {