diff --git a/crontab.go b/crontab.go index d3e7489..a11682b 100644 --- a/crontab.go +++ b/crontab.go @@ -108,6 +108,7 @@ func (cron *Crontab) SetStatus(statusType StatusType, statusValue ...interface{} default: panic(errors.New("statusValue type is error, the type is" + reflect.TypeOf(ivalue).String())) } + cron.force = force case SExecuteCrontab: crontab := statusValue[0].(string) cron.crontab = strings.TrimSpace(crontab)