aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-02-16 17:42:05 -0600
committerJP Dillingham <jp@dillingham.me>2025-02-16 17:42:05 -0600
commit8fdfc74c403f00425d2b56dd39bdc2d1e1a5fd18 (patch)
treeb88d65a8b01bcd82887c50a51c4def8830ceffa2 /src
parent780c100d37a36f290abfd1357d10c50253a7644b (diff)
downloadslskd-8fdfc74c403f00425d2b56dd39bdc2d1e1a5fd18.tar.gz
don't try to run if no executable
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Integrations/Scripts/ScriptService.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/slskd/Integrations/Scripts/ScriptService.cs b/src/slskd/Integrations/Scripts/ScriptService.cs
index 99771d89..1a010a80 100644
--- a/src/slskd/Integrations/Scripts/ScriptService.cs
+++ b/src/slskd/Integrations/Scripts/ScriptService.cs
@@ -91,6 +91,7 @@ public class ScriptService
if (string.IsNullOrEmpty(executable))
{
Log.Warning("Script '{Script}' will not be run: unable to determine script executable. Update the script configuration, or set your operating system's SHELL envar.");
+ return;
}
Log.Debug("Running script '{Script}': \"{Executable}\" {Args} (id: {ProcessId})", script.Key, executable, args, processId);