Fix logic

This commit is contained in:
IvanZosimov 2022-09-29 13:51:12 +02:00
parent eb389a2699
commit 57ce9fed6b
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -337,7 +337,7 @@ class DotnetCoreInstaller {
// process.env must be explicitly passed in for DOTNET_INSTALL_DIR to be used
scriptPath =
(yield io.which('pwsh', false)) || (yield io.which('powershell', true));
scriptArguments = [...windowsDefaultOptions, scriptArguments.join(' ')];
scriptArguments = windowsDefaultOptions.concat(scriptArguments);
}
else {
fs_1.chmodSync(escapedScript, '777');

View File

@ -214,7 +214,7 @@ export class DotnetCoreInstaller {
// process.env must be explicitly passed in for DOTNET_INSTALL_DIR to be used
scriptPath =
(await io.which('pwsh', false)) || (await io.which('powershell', true));
scriptArguments = [...windowsDefaultOptions, scriptArguments.join(' ')];
scriptArguments = windowsDefaultOptions.concat(scriptArguments);
} else {
chmodSync(escapedScript, '777');
scriptPath = await io.which(escapedScript, true);