Always check when update-templates passed

This commit is contained in:
Ice3man543 2020-07-07 18:33:35 +05:30
parent 5447387e71
commit 299a6d5194

View File

@ -131,7 +131,7 @@ func (r *Runner) updateTemplates() error {
// Check if last checked is more than 24 hours.
// If not, return since we don't want to do anything now.
if time.Now().Sub(r.templatesConfig.LastChecked) < 24*time.Hour {
if time.Now().Sub(r.templatesConfig.LastChecked) < 24*time.Hour && !r.options.UpdateTemplates {
return nil
}
r.templatesConfig.LastChecked = time.Now()