Fix issue with quotes

This commit is contained in:
IvanZosimov 2022-09-29 14:28:15 +02:00
parent cd706db558
commit 72e061af64
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -333,7 +333,7 @@ class DotnetCoreInstaller {
if (process.env['no_proxy'] != null) {
scriptArguments.push(`-ProxyBypassList ${process.env['no_proxy']}`);
}
scriptArguments.push('-InstallDir', `'${DotnetCoreInstaller.installationDirectoryWindows}'`);
scriptArguments.push('-InstallDir', `${DotnetCoreInstaller.installationDirectoryWindows}`);
// 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));

View File

@ -210,7 +210,7 @@ export class DotnetCoreInstaller {
scriptArguments.push(
'-InstallDir',
`'${DotnetCoreInstaller.installationDirectoryWindows}'`
`${DotnetCoreInstaller.installationDirectoryWindows}`
);
// process.env must be explicitly passed in for DOTNET_INSTALL_DIR to be used
scriptPath =