aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Integrations
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-03-01 18:50:37 -0600
committerJP Dillingham <jp@dillingham.me>2025-03-01 18:50:37 -0600
commit9c50ae8b5d6e9b6de3d2a3fa26ed6317f50c4433 (patch)
tree58f49ae44bbf246f686cec7bda3dff562774fa66 /src/slskd/Integrations
parent2d6f298055d4b39e0a6fb3b5d39450f7cb85242e (diff)
downloadslskd-9c50ae8b5d6e9b6de3d2a3fa26ed6317f50c4433.tar.gz
fix issue with quoted commands
Diffstat (limited to 'src/slskd/Integrations')
-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 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('"')}\"",
},
};
}