diff --git a/cmd/backup/exec.go b/cmd/backup/exec.go index 0a15ac7..0f4f7b5 100644 --- a/cmd/backup/exec.go +++ b/cmd/backup/exec.go @@ -51,7 +51,7 @@ func (s *script) exec(containerRef string, command string, user string) ([]byte, outputDone <- err }() - if <-outputDone != nil { + if err := <-outputDone; err != nil { return nil, nil, fmt.Errorf("exec: error demultiplexing output: %w", err) }