aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2025-02-25 22:02:02 -0600
committerJP Dillingham <jpdillingham@gmail.com>2025-02-25 22:02:02 -0600
commite22f14e9d12d4bb53d3b802b7bbd5a445e2afbed (patch)
treeac12b3656592089def762742828cbce905adb0b5
parent3d48f846bc90d299fa2bf0d22d868aada4ad00ff (diff)
downloadslskd-e22f14e9d12d4bb53d3b802b7bbd5a445e2afbed.tar.gz
quote command
-rw-r--r--src/slskd/Integrations/Scripts/ScriptService.cs2
1 files changed, 1 insertions, 1 deletions
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}\"",
},
};
}