lb

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

commit b879d3485739425cc5e945e8879be1e538cd4c97
parent 58035da60265a27e9cd51affe0b67dc8183eb259
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Wed,  2 Jan 2019 17:05:43 -0500

delete deltes from htaccess

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

diff --git a/lb b/lb @@ -70,7 +70,7 @@ case "$1" in e*) listandReturn "$webdir"/blog/.drafts/ edit && "$EDITOR" "$webdir/blog/.drafts/$chosen" ;; p*) listandReturn "$webdir"/blog/.drafts/ publish && publish ;; t*) listandReturn "$webdir"/blog/.drafts/ trash && confirm trash && rm -f "$webdir/blog/.drafts/$chosen" && sed -i "/ \"$base.html\"/d" "$webdir/blog/.htaccess" ; printf "Draft deleted.\\n" ;; - d*) listandReturn "$webdir"/blog/ delete && confirm delete && delete ;; + d*) listandReturn "$webdir"/blog/ delete && confirm delete && delete && sed -i "/ \"$base.html\"/d" "$webdir/blog/.htaccess" ;; r*) listandReturn "$webdir"/blog/ revise && revise ;; *) printf "lb blog system by Luke Smith <luke@lukesmith.xyz>\\nUsage:\\n lb n:\\tnew draft\\n lb e:\\tedit draft\\n lb p:\\tpublish/finalize draft\\n lb r:\\trevise published entry\\n lb t:\\tdiscard draft\\n lb d:\\tdelete published entry\\n\\nBe sure to have the following pattern added to your RSS feed, blog file and blog index:\\n\\n<!-- LB -->\\n\\nNew content will be added directly below that sequence. This is required.\\nSee https://github.com/LukeSmithxyz/lb for more.\\n" ;; esac