mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-20 15:40:20 +00:00
update index.js
This commit is contained in:
parent
94bf0052b3
commit
5b90157acc
5
dist/index.js
vendored
5
dist/index.js
vendored
@ -275,10 +275,7 @@ class DotnetCoreInstaller {
|
|||||||
command += ` -ProxyBypassList ${process.env['no_proxy']}`;
|
command += ` -ProxyBypassList ${process.env['no_proxy']}`;
|
||||||
}
|
}
|
||||||
// process.env must be explicitly passed in for DOTNET_INSTALL_DIR to be used
|
// process.env must be explicitly passed in for DOTNET_INSTALL_DIR to be used
|
||||||
let powershellPath = yield io.which('pwsh', false);
|
const powershellPath = (yield io.which('pwsh', false)) || (yield io.which('powershell', true));
|
||||||
if (powershellPath == '') {
|
|
||||||
powershellPath = yield io.which('powershell', true);
|
|
||||||
}
|
|
||||||
var options = {
|
var options = {
|
||||||
listeners: {
|
listeners: {
|
||||||
stdout: (data) => {
|
stdout: (data) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user