Skip to content

Commit

Permalink
Prevented 7zip from logging
Browse files Browse the repository at this point in the history
  • Loading branch information
slxdy committed Nov 14, 2024
1 parent a4773bd commit ccc376b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Generator/SevenZip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ public static async Task ExtractAsync(string archive, string outputDir, bool kee

args.AddRange(fileFilter);

var proc = Process.Start(sevenZipPath, args);
var proc = Process.Start(new ProcessStartInfo(sevenZipPath, args)
{
RedirectStandardOutput = true
})!;
await proc.WaitForExitAsync();
if (proc.ExitCode != 0)
throw new($"7z exit code: {proc.ExitCode}");
Expand Down

0 comments on commit ccc376b

Please sign in to comment.