Skip to content

Commit

Permalink
proper logging
Browse files Browse the repository at this point in the history
  • Loading branch information
rob1997 committed Oct 15, 2024
1 parent 95ef992 commit ab7137d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Setup/Utils.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
using System;
using System.Diagnostics;

namespace Setup;

public static class Utils
{
public static string RunWithBash( this string cmd )
public static void RunWithBash( this string cmd )
{
cmd = cmd.Replace( "\"", "\\\"" );

Expand All @@ -25,7 +26,10 @@ public static string RunWithBash( this string cmd )
string result = process.StandardOutput.ReadToEnd();

process.WaitForExit();

return result;

foreach (string line in result.Split('\n'))
{
Console.WriteLine(line);
}
}
}

0 comments on commit ab7137d

Please sign in to comment.