From b7f0209cc399e87215b0b082e3c4e83a0d7b3a9c Mon Sep 17 00:00:00 2001 From: eson <474420502@qq.com> Date: Sat, 22 Dec 2018 04:35:16 +0800 Subject: [PATCH] fix: crontab setstatus force, forget this: crontab.force = force --- crontab.go | 1 + 1 file changed, 1 insertion(+) 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)