From 71900914565daa28a67acbd6b522bba719d816c7 Mon Sep 17 00:00:00 2001 From: Stanley Lieber Date: Mon, 9 Dec 2019 23:20:11 -0500 Subject: [PATCH] apps/blagh/atom.tpl: find the correct most recently updated file so the feed field is precisely accurate. --- apps/blagh/atom.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/blagh/atom.tpl b/apps/blagh/atom.tpl index e71cfbc..97c665f 100644 --- a/apps/blagh/atom.tpl +++ b/apps/blagh/atom.tpl @@ -11,7 +11,7 @@ fn statpost { ifs=() { summary=`{cat $f/index.md | strip_title_from_md_file | ifs=$difs {$formatter} } } } # rfc3339 date when feed was last updated. -fupdated = `{ndate -a `{date `{mtime `{ls $blagh_root$blagh_dirs | grep -e '^'$blagh_root$blagh_dirs'\/[0-9][0-9][0-9][0-9]$' | tail -1} | awk '{print $1}'}}} +fupdated = `{ndate -a `{date `{mtime `{ls $blagh_root$blagh_dirs/[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]/[0-9] | tail -1} | awk '{print $1}'}}} %}