update index.js
This commit is contained in:
parent
94bf0052b3
commit
5b90157acc
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue