diff --git a/Server.Installer/Resources/Ubuntu_Caddy_Install.sh b/Server.Installer/Resources/Ubuntu_Caddy_Install.sh index d2cfeb81..50fc00bc 100644 --- a/Server.Installer/Resources/Ubuntu_Caddy_Install.sh +++ b/Server.Installer/Resources/Ubuntu_Caddy_Install.sh @@ -95,6 +95,4 @@ systemctl restart remotely.service # Restart caddy -systemctl restart caddy - -echo "Installation completed." \ No newline at end of file +systemctl restart caddy \ No newline at end of file diff --git a/Shared/Utilities/ConsoleHelper.cs b/Shared/Utilities/ConsoleHelper.cs index a4be24f6..f37e8a1a 100644 --- a/Shared/Utilities/ConsoleHelper.cs +++ b/Shared/Utilities/ConsoleHelper.cs @@ -31,12 +31,18 @@ namespace Remotely.Shared.Utilities for (var i = 0; i < message.Length;) { var lineCount = 0; + var trimLine = i > 0; var line = new string(message.Skip(i).TakeWhile(x => { i++; return lineCount++ < 50 || !char.IsWhiteSpace(x); }).ToArray()); + if (trimLine) + { + line = line.Trim(); + } + Console.WriteLine(line); } Console.ForegroundColor = ConsoleColor.Gray;