From 57ce9fed6b3d79b0938c73b21e685130736c298f Mon Sep 17 00:00:00 2001 From: IvanZosimov Date: Thu, 29 Sep 2022 13:51:12 +0200 Subject: [PATCH] Fix logic --- dist/index.js | 2 +- src/installer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);