From 85e1654d11a6bd5892610beece320e6188edeadb Mon Sep 17 00:00:00 2001 From: MIRIMIRIM <59959583+MIRIMIRIM@users.noreply.github.com> Date: Thu, 15 Aug 2024 19:52:27 +0800 Subject: [PATCH] afs.cmd: fix typo --- AssFontSubset.Console/Program.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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; }