diff --git a/TwitchDownloaderCLI/Tools/CliTaskProgress.cs b/TwitchDownloaderCLI/Tools/CliTaskProgress.cs index c0fa4a33..7b873c82 100644 --- a/TwitchDownloaderCLI/Tools/CliTaskProgress.cs +++ b/TwitchDownloaderCLI/Tools/CliTaskProgress.cs @@ -250,5 +250,15 @@ private void WriteNewLineMessage(string preamble, string message) Console.WriteLine(message); _lastWriteHadNewLine = true; } + + ~CliTaskProgress() + { + if (!_lastWriteHadNewLine) + { + // Some shells don't like when an application exits without writing a newline to the end of stdout + Console.WriteLine(); + _lastWriteHadNewLine = true; + } + } } } \ No newline at end of file