From 0011a6aa7e40603e6dd1a1b02faff2932bfb30d2 Mon Sep 17 00:00:00 2001 From: Stanley Lieber Date: Mon, 9 Dec 2019 23:21:45 -0500 Subject: [PATCH] apps/blagh/rss20.tpl: find the correct most recently updated file so the field is precisely accurate. --- apps/blagh/rss20.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/blagh/rss20.tpl b/apps/blagh/rss20.tpl index 95b2d2f..0cba818 100644 --- a/apps/blagh/rss20.tpl +++ b/apps/blagh/rss20.tpl @@ -23,7 +23,7 @@ fn statpost { %{ # uriel99+rss@gmail.com (Uriel) # rfc2822 last time channel content changed. - lbd=`{ndate -m `{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}'}}} + lbd=`{ndate -m `{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}'}}} echo ''$"lbd'' # rfc2822 publication date for content in the channel. pubdate=`{ndate -m}