summaryrefslogtreecommitdiff
path: root/commits.go
diff options
context:
space:
mode:
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)