diff --git a/dist/index.js b/dist/index.js index 7b8699d..553f991 100644 --- a/dist/index.js +++ b/dist/index.js @@ -275,10 +275,7 @@ class DotnetCoreInstaller { command += ` -ProxyBypassList ${process.env['no_proxy']}`; } // process.env must be explicitly passed in for DOTNET_INSTALL_DIR to be used - let powershellPath = yield io.which('pwsh', false); - if (powershellPath == '') { - powershellPath = yield io.which('powershell', true); - } + const powershellPath = (yield io.which('pwsh', false)) || (yield io.which('powershell', true)); var options = { listeners: { stdout: (data) => {