From 5b90157acce646a27c914620b016eb29d7c5bdce Mon Sep 17 00:00:00 2001 From: Thomas Boop Date: Thu, 22 Sep 2022 09:46:28 -0400 Subject: [PATCH] update index.js --- dist/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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) => {