Skip to content

Commit

Permalink
Fail on erroneous post command
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 committed Jul 7, 2022
1 parent 2c8f314 commit bccdd3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/backup/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func (s *script) withLabeledCommands(step lifecyclePhase, cb func() error) func(
return fmt.Errorf("withLabeledCommands: %s: error running pre commands: %w", step, err)
}
defer func() {
s.runLabeledCommands(fmt.Sprintf("docker-volume-backup.%s-post", step))
s.must(s.runLabeledCommands(fmt.Sprintf("docker-volume-backup.%s-post", step)))
}()
return cb()
}
Expand Down

0 comments on commit bccdd3a

Please sign in to comment.