Skip to content

Commit 4ebc5af

Browse files
committed
Only block when input is not redirected
This case occurs when run as part of an Azure pipeline
1 parent 0ce3c3d commit 4ebc5af

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mdresgen/Program.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ static void Main(string[] args)
7777
Console.WriteLine();
7878
Console.WriteLine();
7979
Console.WriteLine("FINISHED");
80-
Console.ReadKey();
80+
if (!Console.IsInputRedirected)
81+
{
82+
Console.ReadKey();
83+
}
8184
}
8285

8386

0 commit comments

Comments
 (0)