From d20cbbea0344355218ecdfe540c855bbabdec1d1 Mon Sep 17 00:00:00 2001 From: Caelan Date: Wed, 8 Jun 2022 13:57:52 -0600 Subject: [PATCH] Fix log variable substitution --- src/Squirrel.CommandLine/ConsoleLogger.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Squirrel.CommandLine/ConsoleLogger.cs b/src/Squirrel.CommandLine/ConsoleLogger.cs index 94ff3d51e..3e355efd5 100644 --- a/src/Squirrel.CommandLine/ConsoleLogger.cs +++ b/src/Squirrel.CommandLine/ConsoleLogger.cs @@ -10,8 +10,8 @@ class ConsoleLogger : ILogger private readonly object gate = new object(); - private readonly string localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); - private readonly string localTemp = Path.GetTempPath(); + private readonly string localAppData = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData).TrimEnd('/', '\\'); + private readonly string localTemp = Path.GetTempPath().TrimEnd('/', '\\'); public void Write(string message, LogLevel logLevel) {