lb

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

commit 3dd70e7f6c415000aeb2218baabbece83431ca3e
parent 1e5612f2c3e6987ddc7d812265220935496f514e
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Thu, 20 Dec 2018 17:17:22 -0500

old htaccess entry deleted on publish

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

diff --git a/lb b/lb @@ -49,6 +49,7 @@ publish() { \ sed -i "/<!-- LB -->/r $tmpdir/html" "$blogfile" sed -i "/<!-- LB -->/r $tmpdir/rss" "$rssfile" sed -i "/<!-- LB -->/r $tmpdir/index" "$indexfile" + sed -i "/ \"$base.html\"/d" "$webdir/blog/.htaccess" printf "\\nAddDescription \"%s\" \"%s\" #%s" "$realname" "$basefile" "$rssdate" >> "$webdir/blog/.htaccess" rm -f "$webdir/blog/.drafts/$chosen" }