mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-18 06:35:09 +00:00
Merge branch 'main' into ADRdotnet
This commit is contained in:
commit
890cbe1576
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -335,7 +335,8 @@ class DotnetCoreInstaller {
|
|||||||
}
|
}
|
||||||
scriptArguments.push(`-InstallDir '${DotnetCoreInstaller.installationDirectoryWindows}'`);
|
scriptArguments.push(`-InstallDir '${DotnetCoreInstaller.installationDirectoryWindows}'`);
|
||||||
// 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
|
||||||
scriptPath = yield io.which('powershell', true);
|
scriptPath =
|
||||||
|
(yield io.which('pwsh', false)) || (yield io.which('powershell', true));
|
||||||
scriptArguments = [...windowsDefaultOptions, scriptArguments.join(' ')];
|
scriptArguments = [...windowsDefaultOptions, scriptArguments.join(' ')];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -209,7 +209,8 @@ export class DotnetCoreInstaller {
|
|||||||
`-InstallDir '${DotnetCoreInstaller.installationDirectoryWindows}'`
|
`-InstallDir '${DotnetCoreInstaller.installationDirectoryWindows}'`
|
||||||
);
|
);
|
||||||
// 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
|
||||||
scriptPath = await io.which('powershell', true);
|
scriptPath =
|
||||||
|
(await io.which('pwsh', false)) || (await io.which('powershell', true));
|
||||||
scriptArguments = [...windowsDefaultOptions, scriptArguments.join(' ')];
|
scriptArguments = [...windowsDefaultOptions, scriptArguments.join(' ')];
|
||||||
} else {
|
} else {
|
||||||
chmodSync(escapedScript, '777');
|
chmodSync(escapedScript, '777');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user