diff --git a/dist/index.js b/dist/index.js index ce3c07f..9f10f01 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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'); diff --git a/src/installer.ts b/src/installer.ts index 6f5a8b1..589fe39 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -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);