From 973bdde0159cf90e9a80dd55bfdcd15bf6acdecf Mon Sep 17 00:00:00 2001 From: IvanZosimov Date: Thu, 18 Aug 2022 11:19:50 +0200 Subject: [PATCH] Change install dir for Windows --- 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 ef39795..210cdf3 100644 --- a/dist/index.js +++ b/dist/index.js @@ -357,7 +357,7 @@ class DotnetCoreInstaller { } } exports.DotnetCoreInstaller = DotnetCoreInstaller; -DotnetCoreInstaller.installationDirectoryWindows = path.join(process.env['PROGRAMFILES'] + '', "dotnet"); +DotnetCoreInstaller.installationDirectoryWindows = `'${path.join(process.env['PROGRAMFILES'] + '', "dotnet")}'`; DotnetCoreInstaller.installationDirectoryLinux = '/usr/share/dotnet'; function logWarning(message) { const warningPrefix = '[warning]'; diff --git a/src/installer.ts b/src/installer.ts index 42080a5..86fee04 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -83,7 +83,7 @@ export class DotnetVersionResolver { export class DotnetCoreInstaller { private version: string; private quality: string; - static installationDirectoryWindows = path.join(process.env['PROGRAMFILES'] + '', "dotnet"); + static installationDirectoryWindows = `'${path.join(process.env['PROGRAMFILES'] + '', "dotnet")}'`; static installationDirectoryLinux = '/usr/share/dotnet'; constructor(version: string, quality: string) {