diff options
author | KatolaZ <katolaz@freaknet.org> | 2017-08-07 14:14:47 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2017-08-07 14:14:47 +0100 |
commit | 200e2f0328b6cfc6965d5399d7750df19eec6144 (patch) | |
tree | 147de793fd1a02eafbadbdd667a848bca074543b /commits.go | |
parent | b31fe15e0d13f9064e26b117541633496c0c3307 (diff) |
completed refactoring from tags to commands0.3
Diffstat (limited to 'commits.go')
-rw-r--r-- | commits.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -176,7 +176,12 @@ func walkCommits(msg spoolMsg, w *worker) error { // 2) then for each command in the message for _, c := range cmdMsg.Commands { + if c.Cmd == "" { + log.Printf("[worker: %s] empty command\n", w.Name) + continue + } // a) check that the command is among those accepted by the worker + debug.log("[worker: %s] validating command: %s\n", w.Name, c.Cmd) cmdCfg, goodCmd := findCmdConfig(c.Cmd, w) debug.log("[worker: %s] goodCmd: %s\n", w.Name, goodCmd) |