Skip to content

Commit

Permalink
fix incorrect retry times
Browse files Browse the repository at this point in the history
  • Loading branch information
JunyiHe committed Jan 22, 2019
1 parent beab0d0 commit 6d6e4b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion job.go
Expand Up @@ -155,7 +155,7 @@ func (c *Cmd) Run() {
return
}

for i := 0; i < c.Job.Retry; i++ {
for i := 0; i <= c.Job.Retry; i++ {
if c.Job.Run() {
return
}
Expand Down

0 comments on commit 6d6e4b4

Please sign in to comment.