update index.js

This commit is contained in:
Thomas Boop 2022-09-22 09:46:28 -04:00
parent 94bf0052b3
commit 5b90157acc

5
dist/index.js vendored
View File

@ -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) => {