From 9c50ae8b5d6e9b6de3d2a3fa26ed6317f50c4433 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sat, 1 Mar 2025 18:50:37 -0600 Subject: fix issue with quoted commands --- src/slskd/Integrations/Scripts/ScriptService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/slskd/Integrations/Scripts/ScriptService.cs') diff --git a/src/slskd/Integrations/Scripts/ScriptService.cs b/src/slskd/Integrations/Scripts/ScriptService.cs index dacead33..05769a6d 100644 --- a/src/slskd/Integrations/Scripts/ScriptService.cs +++ b/src/slskd/Integrations/Scripts/ScriptService.cs @@ -117,7 +117,7 @@ public class ScriptService CreateNoWindow = true, RedirectStandardOutput = true, RedirectStandardError = true, - Arguments = run.Command.StartsWith(DefaultCommandPrefix) ? run.Command : $"{DefaultCommandPrefix} \"{run.Command}\"", + Arguments = run.Command.StartsWith(DefaultCommandPrefix) ? run.Command : $"{DefaultCommandPrefix} \"{run.Command.Trim('"')}\"", }, }; } -- cgit v1.2.3