Skip to content

Commit

Permalink
🐛 Fix progress bar during plain dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Apr 6, 2022
1 parent 549edb0 commit 7feef8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/dump/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,14 @@ func run(cmd *cobra.Command, args []string) (err error) {
return err
}

_ = bar.Finish()
log.SetOutput(os.Stderr)

err = <-ch
if err != nil {
return err
}

_ = bar.Finish()
log.SetOutput(os.Stderr)

// Close file
err = f.Close()
if err != nil {
Expand Down

0 comments on commit 7feef8d

Please sign in to comment.