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) {