From e566edc0442330c11906da384d589c47f836de37 Mon Sep 17 00:00:00 2001 From: Melodi <62381002+Melodi17@users.noreply.github.com> Date: Wed, 28 Oct 2026 00:04:17 +1000 Subject: fix: file name; move into loop and uow --- src/marlin.agents.shell/CommandRunner.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/marlin.agents.shell/CommandRunner.cs') diff --git a/src/marlin.agents.shell/CommandRunner.cs b/src/marlin.agents.shell/CommandRunner.cs index d4fcbb3..90c0a58 100644 --- a/src/marlin.agents.shell/CommandRunner.cs +++ b/src/marlin.agents.shell/CommandRunner.cs @@ -2,7 +2,7 @@ using System.Diagnostics; public static class CommandRunner { - public static async Task RunAsync(string command, Action onStdout, Action onStderr) + public static async Task RunAsync(string command, string workingDir, Action onStdout, Action onStderr) { var psi = new ProcessStartInfo { @@ -11,7 +11,8 @@ public static class CommandRunner RedirectStandardOutput = true, RedirectStandardError = true, UseShellExecute = false, - CreateNoWindow = true + CreateNoWindow = true, + WorkingDirectory = workingDir }; var process = new Process { StartInfo = psi }; -- cgit v1.3.1