From 94bf0052b37d428db9aac5c65c01887ba4da2b7a Mon Sep 17 00:00:00 2001 From: Thomas Boop <52323235+thboop@users.noreply.github.com> Date: Thu, 22 Sep 2022 09:45:47 -0400 Subject: [PATCH] Update src/installer.ts Co-authored-by: Ivan <98037481+IvanZosimov@users.noreply.github.com> --- src/installer.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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: {