shithub: werc

Download patch

ref: e7cc786809c7be924a364aaa242f90d37d9a0520
parent: 63858bccd030657f3d15bf604a86ef90cfc23a30
author: sl <[email protected]>
date: Mon Dec 9 18:21:45 EST 2019

apps/blagh/rss20.tpl: find the correct most recently updated file so the <lastBuildDate> field is precisely accurate.

--- a/apps/blagh/rss20.tpl
+++ b/apps/blagh/rss20.tpl
@@ -23,7 +23,7 @@
 %{
         # <webMaster>[email protected] (Uriel)</webMaster>
 	# 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 '<lastBuildDate>'$"lbd'</lastBuildDate>'
 	# rfc2822 publication date for content in the channel.
 	pubdate=`{ndate -m}