mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-20 15:40:20 +00:00
Update src/installer.ts
Co-authored-by: Ivan <98037481+IvanZosimov@users.noreply.github.com>
This commit is contained in:
parent
9cf8ed9671
commit
94bf0052b3
@ -116,10 +116,7 @@ export class DotnetCoreInstaller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 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 = await io.which('pwsh', false);
|
const powershellPath = await io.which('pwsh', false) || await io.which('powershell', true);
|
||||||
if (powershellPath == '') {
|
|
||||||
powershellPath = await io.which('powershell', true);
|
|
||||||
}
|
|
||||||
|
|
||||||
var options: ExecOptions = {
|
var options: ExecOptions = {
|
||||||
listeners: {
|
listeners: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user