From cd706db55800a321aaab725dd30910c082858483 Mon Sep 17 00:00:00 2001 From: IvanZosimov Date: Thu, 29 Sep 2022 14:04:33 +0200 Subject: [PATCH] Fix issue with quotes --- 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 e9d78cf..7e051ae 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 cce97da..8b4ee38 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -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 =