diff options
| author | JP Dillingham <jp@dillingham.me> | 2025-02-16 17:42:05 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2025-02-16 17:42:05 -0600 |
| commit | 8fdfc74c403f00425d2b56dd39bdc2d1e1a5fd18 (patch) | |
| tree | b88d65a8b01bcd82887c50a51c4def8830ceffa2 /src/slskd/Integrations/Scripts | |
| parent | 780c100d37a36f290abfd1357d10c50253a7644b (diff) | |
| download | slskd-8fdfc74c403f00425d2b56dd39bdc2d1e1a5fd18.tar.gz | |
don't try to run if no executable
Diffstat (limited to 'src/slskd/Integrations/Scripts')
| -rw-r--r-- | src/slskd/Integrations/Scripts/ScriptService.cs | 1 |
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); |
