From e22f14e9d12d4bb53d3b802b7bbd5a445e2afbed Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 25 Feb 2025 22:02:02 -0600 Subject: quote command --- src/slskd/Integrations/Scripts/ScriptService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/slskd/Integrations') diff --git a/src/slskd/Integrations/Scripts/ScriptService.cs b/src/slskd/Integrations/Scripts/ScriptService.cs index 6c289832..0d789a91 100644 --- a/src/slskd/Integrations/Scripts/ScriptService.cs +++ b/src/slskd/Integrations/Scripts/ScriptService.cs @@ -115,7 +115,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}\"", }, }; } -- cgit v1.2.3