Browse Source

Fix the cmdline progress

Signed-off-by: Vadim Markovtsev <vadim@sourced.tech>
Vadim Markovtsev 6 years ago
parent
commit
e39f392eb9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cmd/hercules/root.go

+ 1 - 1
cmd/hercules/root.go

@@ -170,7 +170,7 @@ targets can be added using the --plugin system.`,
 					bar.SetMaxWidth(80)
 					bar.Start()
 				}
-				if commit == length {
+				if commit == length - 1 {
 					bar.Finish()
 					fmt.Fprint(os.Stderr, "\r"+strings.Repeat(" ", 80)+"\rfinalizing...")
 				} else {