diff --git a/dist/index.js b/dist/index.js index 9f10f01..e9d78cf 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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)); diff --git a/src/installer.ts b/src/installer.ts index 589fe39..cce97da 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -209,7 +209,8 @@ export class DotnetCoreInstaller { } scriptArguments.push( - `-InstallDir '${DotnetCoreInstaller.installationDirectoryWindows}'` + '-InstallDir', + DotnetCoreInstaller.installationDirectoryWindows ); // process.env must be explicitly passed in for DOTNET_INSTALL_DIR to be used scriptPath =