lb

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 70933149cb9384cbab5910c92cbd92539c057905
parent 19c884c49a83b0c419440c82d21d35d2392bd608
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Tue, 18 Dec 2018 09:32:00 -0500

dont remove old htaccess

Diffstat:
Mlb | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/lb b/lb @@ -49,7 +49,6 @@ publish() { \ sed -i "/<!-- LB -->/r $tmpdir/html" "$blogfile" sed -i "/<!-- LB -->/r $tmpdir/rss" "$rssfile" sed -i "/<!-- LB -->/r $tmpdir/index" "$indexfile" - sed -i "/ \"$basefile/d" "$webdir/blog/.htaccess" printf "AddDescription \"%s\" \"%s\" #%s" "$realname" "$basefile" "$rssdate" >> "$webdir/blog/.htaccess" rm -f "$webdir/blog/.drafts/$chosen" } @@ -60,7 +59,6 @@ delete() { \ sed -i "/<item/{:a;N;/<\\/item>/!ba};/#$base.html<\\/guid/d" $rssfile sed -i "/<div/{:a;N;/<\\/div>/!ba};/id='$base'/d" $blogfile sed -i "/<li>.*<a href=\"blog\\/$base.html\">/d" $indexfile - sed -i "\"$base.html\"" "$webdir/blog/.htaccess" rm "$webdir/blog/$basefile" 2>/dev/null && printf "Old blog entry removed.\\n" ;} revise() { awk '/^<small>\[/{flag=1;next}/<footer>/{flag=0}flag' "$webdir/blog/$chosen" > "$webdir/blog/.drafts/$basefile"