apps/blagh/rss20.tpl: improve grep for <lastBuildDate>

This commit is contained in:
Stanley Lieber 2019-12-09 19:46:57 -05:00
parent 50a4a9e742
commit 708c506ba8

View file

@ -23,7 +23,7 @@ fn statpost {
%{
# <webMaster>uriel99+rss@gmail.com (Uriel)</webMaster>
# rfc822 last time channel content changed.
lbd=`{ndate -m `{date `{mtime `{ls $blagh_root$blagh_dirs | grep -e '[0-9][0-9][0-9][0-9]' | tail -1} | awk '{print $1}'}}}
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}'}}}
echo '<lastBuildDate>'$"lbd'</lastBuildDate>'
# rfc822 publication date for content in the channel.
pubdate=`{ndate -m}