# HG changeset patch # User HIROSE Yuuji # Date 1359296282 -32400 # Node ID 1acd9c926bd694ec07dfca9f298bc62c8239e5cb # Parent ec7d483d381dd438c1854dcfa7e95d201e149694 Empty check, fixed. diff -r ec7d483d381d -r 1acd9c926bd6 after5.rb --- a/after5.rb Fri Jan 25 18:11:32 2013 +0900 +++ b/after5.rb Sun Jan 27 23:18:02 2013 +0900 @@ -2664,9 +2664,9 @@ end end } - if !ntlist.empty? + if !(list = @sc.notify_list(now)).empty? subj = @mybase+": Undeleted old cron files detected" - files = ntlist.collect{|who, whash| + files = list.collect{|who, whash| whash.sort.collect{|date, fhash| fhash['file']}.join("\n") }.join("\n") sendMail(@opt['maintainer'], subj,