lb

A fully-featured RSS and blog site generator in less than 100 lines of shell script
Log | Files | Refs | README | LICENSE

commit 40d0aa2883bd63a4bfd20c0406c8ff53e1640b4d
parent 90d68993a09afa729ea731a823ce03ecb2d2ab8a
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Thu, 25 Jul 2019 19:32:44 -0400

RSS delete fix

Diffstat:
Mlb | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lb b/lb @@ -56,7 +56,7 @@ publish() { \ confirm() { read -erp "Really $1 \"$base\"? (y/N) " choice && echo "$choice" | grep -i "^y$" >/dev/null || exit 1 ;} delete() { \ - sed -i "/<item/{:a;N;/<\\/item>/!ba};/#$base.html<\\/guid/d" $rssfile + sed -i "/<item/{:a;N;/<\\/item>/!ba};/#$base<\\/guid/d" $rssfile sed -i "/<div class='entry'>/{:a;N;/<\\/div>/!ba};/id='$base'/d" $blogfile sed -i "/<li>.*<a href=\"blog\\/$base.html\">/d" $indexfile rm "$webdir/blog/$basefile" 2>/dev/null && printf "Old blog entry removed.\\n" ;}