LukeSmithxyz / lb

Blog & RSS system in less than 100 lines of shell script
GNU General Public License v3.0
280 stars 81 forks source link

Minor patch to fix "Old entry removed" when publishing #35

Closed rnsavinelli closed 4 years ago

rnsavinelli commented 4 years ago

When running ./lb p and only one entry was listed, lb outputted "Old entry removed" ... With this patch lb will only print "Old entry removed" if what is to be deleted is not a draft. Also, with this patch, listing content is now verbose even if there's only one listed entry.

The output now looks like this:

$ ./lb p
Listing contents of /path/to/lb/blog/.drafts/
There's only one blog entry to publish.
Defaulting selection to example.html

Same with delete and every function that calls listandReturn().

rnsavinelli commented 4 years ago

The readme should now say less than 82 lines, haha