Explorar o código

Fix the cmdline progress

Signed-off-by: Vadim Markovtsev <vadim@sourced.tech>
Vadim Markovtsev %!s(int64=6) %!d(string=hai) anos
pai
achega
e39f392eb9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {