mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
Ensure to exit with a non-zero status code when a timeout occurs and we don't complete all the jobs.
This commit is contained in:
parent
0b96666c66
commit
7ab576891e
@ -312,6 +312,9 @@ OUTER:
|
||||
c.Ui.Info(fmt.Sprintf("Completed in %0.2f seconds",
|
||||
float64(time.Now().Sub(start))/float64(time.Second)))
|
||||
}
|
||||
if exitCount < ackCount {
|
||||
badExit++
|
||||
}
|
||||
break OUTER
|
||||
|
||||
case <-errCh:
|
||||
|
Loading…
x
Reference in New Issue
Block a user