Rebuild action

This commit is contained in:
IvanZosimov 2022-09-22 15:36:49 +02:00
parent 2fb974523e
commit cf1d9cb755

3
dist/index.js vendored
View File

@ -335,8 +335,7 @@ 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 = scriptPath = yield io.which('powershell', true);
(yield io.which('powershell', false)) || (yield io.which('pwsh', true));
scriptArguments = [...windowsDefaultOptions, scriptArguments.join(' ')]; scriptArguments = [...windowsDefaultOptions, scriptArguments.join(' ')];
} }
else { else {