fix incorrect retry times

pull/132/head
Junyi He 2019-01-22 15:35:08 +08:00 committed by GitHub
parent beab0d0078
commit 6d6e4b4a94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
job.go
View File

@ -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
}