summaryrefslogtreecommitdiff
path: root/commits.go
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2017-08-07 14:14:47 +0100
committerKatolaZ <katolaz@freaknet.org>2017-08-07 14:14:47 +0100
commit200e2f0328b6cfc6965d5399d7750df19eec6144 (patch)
tree147de793fd1a02eafbadbdd667a848bca074543b /commits.go
parentb31fe15e0d13f9064e26b117541633496c0c3307 (diff)
completed refactoring from tags to commands0.3
Diffstat (limited to 'commits.go')
-rw-r--r--commits.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/commits.go b/commits.go
index 4cc67a3..e85c976 100644
--- a/commits.go
+++ b/commits.go
@@ -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)