главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
path: root/bb.sh
AgeCommit message (Collapse)Author
2016-01-19test_markdown() without temporary filesMartijn Dekker
- A much shorter test_markdown() function that compares output directly rather than using temp files. - Revert to using 'which' rather than 'command -v' for using the markdown binary because 'command -v' will find the markdown() shell function.
2016-01-18fix unquoted $global_disqus_username that shellcheck.net didn't catchMartijn Dekker
(it was subject to field splitting and globbing)
2016-01-18Get rid of a couple of more shellcheck.net warnings.Martijn Dekker
2016-01-18Some more code and performance optimisationsMartijn Dekker
- Use builtin 'command -v' rather than external 'which'. - The clean_filename() function just removed the initial ./ from a file name; do this with a parameter substitution instead. This gets rid of the need to fork subshells for command substitutions, so is much faster. - Where convenient, replace 'echo ... | sed ...' with fast parameter substitutions.
2016-01-18XHTML compliance fix: self-close meta tagMartijn Dekker
2016-01-14fixed posts singular/pluralCarlos
2016-01-14Added 'tags' commandCarlos
2016-01-14Changed copyright year and version numberCarlos
2016-01-11fix: allow field splitting on tags_with_posts callMartijn Dekker
Quoted one too many there.
2016-01-11more robust parsing of 'ls' using 'read'Martijn Dekker
* Iterating through 'ls' output using 'for' is very brittle; it relies on word splitting and globbing can also mess it up. It's best to use globs directly, but if using 'ls' cannot be avoided, e.g. if you need to sort by date, at least we can use 'IFS= read -r $i' to read from a here-document filled with the 'ls' output, which leaves everything in file names intact except newlines. * Other minor cleanups.
2016-01-11Code cleanups: quoting, redirection, string handlingMartijn Dekker
- Fix lots of problems with convoluted and broken quoting techniques. - Group code blocks for redirection into a file rather than doing a separate additive redirect for each command. - Replace strings using bash parameter substitution rather than piping 'echo' through 'sed', resulting in a faster script.
2016-01-11More correct and effective use of arraysMartijn Dekker
2016-01-10Consistent use of [[ and (( instead of [Martijn Dekker
Another minor code cleanup. Within [[ ... ]] and (( ... )) (but not [ ... ]) there is a different shell parsing context in which field splitting (a.k.a. word splitting) and pathname expansion (a.k.a. filename globbing) don't apply, so consistently use '[[' (and '((' for arithmetics) instead of '[' and remove unnecessary quotes. Since '[[ x == y]]' does 'case'-like glob pattern matching on 'y', the quotes to the right of '==' need to be kept for variables or glob characters, except if a glob pattern is wanted.
2016-01-10Remove unnecessary quotes from scalar assignmentsMartijn Dekker
Substitutions (variables, command substitutions, etc.) directly assigned to a scalar variable don't need to be quoted, as field splitting and globbing don't apply in that context. Removing superfluous quotes makes the code look a bit cleaner.
2015-12-21topsy is killCarlos
2015-09-23Shellcheck. Fix #78Carlos
2015-09-02little changes in css to adapt width to screenDavid Mateos
width in px changed by percentage in main.css and meta tag viewport added.
2015-07-11fixed bug where drafts were appended a random postfix after re-editingCarlos
2015-05-09Fixes #70Enneka
2015-03-09Close #72Carlos Fenollosa
2015-02-19Fix #71Carlos Fenollosa
2014-10-05fix #59Carlos Fenollosa
2014-09-15properly quote twitter cardsCarlos Fenollosa
2014-09-15Twitter cards. Fixes #36Carlos Fenollosa
2014-09-12changed hardcoded /bin/ pathsCarlos Fenollosa
2014-09-01Close #61 #57Carlos Fenollosa
2014-08-19fix #65Carlos Fenollosa
2014-07-18updated twitter count apiCarlos Fenollosa
2014-07-17Now the tweet count links to TopsyCarlos Fenollosa
2014-07-11Fix for #60Carlos Fenollosa
2014-07-07Twitter count now links to search resultsCarlos Fenollosa
2014-07-07Cookieless twitter optionCarlos Fenollosa
2014-07-03Hide warning message in sedCarlos Fenollosa
2014-06-30Sed error on macCarlos Fenollosa
2014-06-30Sed error on macCarlos Fenollosa
2014-06-30Sed error on macCarlos Fenollosa
2014-06-30Sed error on macCarlos Fenollosa
2014-06-30Sed error on macCarlos Fenollosa
2014-06-30Fixed #56Carlos Fenollosa
2014-06-30Manual fix for #54Carlos Fenollosa
2014-06-28suppress error messages and don't enter for loop when no tag files existAlexey Shpakovsky
2014-06-28don't invoke sed when no tag givenAlexey Shpakovsky
the bug was that sed was expecting file content on stdin when didn't receive any filename, and script was "frozen" when someone tried to edit a post without any tags.
2014-06-27Updated version and contributorsCarlos Fenollosa
2014-06-27Merge pull request #53 from Lex-2008/small-fixes/4Carlos Fenollosa
Small fixes/4
2014-06-27Merge pull request #52 from Lex-2008/rebuild-less-tagsCarlos Fenollosa
Rebuild less tags
2014-06-26help textAlexey Shpakovsky
2014-06-26use file extension when posting with `bb.sh post file.ext`Alexey Shpakovsky
but let users override it with `bb.sh post -html file.md`
2014-06-26use markdown by default (if available) when posting with `bb.sh post`Alexey Shpakovsky
2014-06-26Don't ask for preview - just show URL for previewAlexey Shpakovsky
2014-06-26fix typos in commentsAlexey Shpakovsky