apps/blagh/rss20.tpl: improve grep for <lastBuildDate>
This commit is contained in:
		
							parent
							
								
									50a4a9e742
								
							
						
					
					
						commit
						708c506ba8
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -23,7 +23,7 @@ fn statpost { | ||||||
| %{ | %{ | ||||||
|         # <webMaster>uriel99+rss@gmail.com (Uriel)</webMaster> |         # <webMaster>uriel99+rss@gmail.com (Uriel)</webMaster> | ||||||
| 	# rfc822 last time channel content changed. | 	# 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>' | 	echo '<lastBuildDate>'$"lbd'</lastBuildDate>' | ||||||
| 	# rfc822 publication date for content in the channel. | 	# rfc822 publication date for content in the channel. | ||||||
| 	pubdate=`{ndate -m} | 	pubdate=`{ndate -m} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Stanley Lieber
						Stanley Lieber