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,