From 07a17f5dab1d403c176dbb3fe5fbbb9097b47dcf Mon Sep 17 00:00:00 2001 From: iadgovuser29 <33426478+iadgovuser29@users.noreply.github.com> Date: Mon, 6 Jan 2025 15:09:10 -0500 Subject: [PATCH] yml 7 --- dotnet/ComponentClassRegistry/Pcie/src/ShellHelper.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dotnet/ComponentClassRegistry/Pcie/src/ShellHelper.cs b/dotnet/ComponentClassRegistry/Pcie/src/ShellHelper.cs index 76014b1..cb48ad3 100644 --- a/dotnet/ComponentClassRegistry/Pcie/src/ShellHelper.cs +++ b/dotnet/ComponentClassRegistry/Pcie/src/ShellHelper.cs @@ -5,8 +5,7 @@ public static class ShellHelper { public static Task> Ethtool(string arguments) { ProcessStartInfo info = new() { FileName = "ethtool", - Arguments = "-P '" + arguments + "'", - WorkingDirectory = Path.GetDirectoryName("ethtool")?.Replace("\\", "/"), + Arguments = "-P " + arguments, RedirectStandardOutput = true, RedirectStandardError = true, UseShellExecute = false,