ref: 708c506ba87e5e3eaee661a669bb7eb521b2bfbb
parent: 50a4a9e7429dbb3b1c266d6a4660653dcf9d2a16
author: Stanley Lieber <sl@stanleylieber.com>
date: Mon Dec 9 14:46:57 EST 2019
apps/blagh/rss20.tpl: improve grep for <lastBuildDate>
--- a/apps/blagh/rss20.tpl
+++ b/apps/blagh/rss20.tpl
@@ -23,7 +23,7 @@
%{
# <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}
--
⑨