diff --git a/AssFontSubset.Console/Program.cs b/AssFontSubset.Console/Program.cs index c8c66c7..ccaff0a 100644 --- a/AssFontSubset.Console/Program.cs +++ b/AssFontSubset.Console/Program.cs @@ -66,13 +66,11 @@ await Subset( { exitCode = 1; } - - if (!System.Console.IsOutputRedirected) - { - System.Console.WriteLine("Press Any key to exit..."); - System.Console.ReadKey(); - } - + + if (System.Console.IsOutputRedirected || System.Console.IsErrorRedirected) return exitCode; + System.Console.WriteLine("Press Any key to exit..."); + System.Console.ReadKey(); + return exitCode; }