mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-18 06:35:09 +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
|
||||
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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user