diff --git a/pkg/commands/process/orchestrator/orchestrator.go b/pkg/commands/process/orchestrator/orchestrator.go index 9640be605..727305627 100644 --- a/pkg/commands/process/orchestrator/orchestrator.go +++ b/pkg/commands/process/orchestrator/orchestrator.go @@ -85,6 +85,11 @@ func (orchestrator *Orchestrator) waitForScan(fileComplete chan struct{}, totalC } }() + if totalCount == 0 { + log.Debug().Msgf("no files to scan") + return + } + for { select { case <-orchestrator.done: