old htaccess entry deleted on publish

This commit is contained in:
Luke Smith 2018-12-20 17:17:22 -05:00
parent 1e5612f2c3
commit 3dd70e7f6c
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252
1 changed files with 1 additions and 0 deletions

1
lb
View File

@ -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"
}