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().
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:
Same with delete and every function that calls listandReturn().