Commit graph

235 commits

Author SHA1 Message Date
Martijn Dekker
2b24132f3c Consistent use of [[ and (( instead of [
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-10 23:17:48 +01:00
Martijn Dekker
f3329f0a82 Remove unnecessary quotes from scalar assignments
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.
2016-01-10 19:31:49 +01:00
Carlos
ab91e5dda1 topsy is kill 2015-12-21 19:49:34 +01:00
Carlos Fenollosa
982b8a108d Update README.md 2015-11-13 16:30:19 +01:00
Carlos
54fdb360ab Shellcheck. Fix #78 2015-09-23 17:43:44 +02:00
Carlos Fenollosa
f891d262da Merge pull request #80 from damateos/adaptative
little changes in css to adapt width to screen
2015-09-23 17:28:14 +02:00
David Mateos
81942377b7 little changes in css to adapt width to screen
width in px changed by percentage in main.css and meta tag viewport
added.
2015-09-02 11:30:47 +02:00
Carlos
f90c439814 fixed bug where drafts were appended a random postfix after re-editing 2015-07-11 12:10:25 +02:00
Carlos Fenollosa
fab3bc1054 Update README.md 2015-05-13 13:22:01 +02:00
Carlos Fenollosa
1a92bd7700 Update README.md 2015-05-13 13:18:11 +02:00
Carlos Fenollosa
088eebd621 Merge pull request #77 from vielmetti/patch-1
Update the "not abandoned by" date
2015-05-13 13:15:05 +02:00
Edward Vielmetti
d161020afa Update the "not abandoned by" date 2015-05-13 06:43:52 -04:00
Carlos Fenollosa
ec01889d91 Merge pull request #75 from Enneka/master
Fixes #70
2015-05-12 17:20:34 +02:00
Enneka
ee711aee64 Fixes #70 2015-05-09 18:06:25 -04:00
Carlos Fenollosa
95854e9dfe Close #72 2015-03-09 11:21:15 +01:00
Carlos Fenollosa
db3f42c417 Fix #71 2015-02-19 09:33:29 +01:00
Carlos Fenollosa
3c39aafe20 fix #59 2014-10-05 18:12:37 +02:00
Carlos Fenollosa
63476204de properly quote twitter cards 2014-09-15 19:32:51 +02:00
Carlos Fenollosa
adfcd98012 Twitter cards. Fixes #36 2014-09-15 19:23:12 +02:00
Carlos Fenollosa
450ecddfea changed hardcoded /bin/ paths 2014-09-12 17:00:01 +02:00
Carlos Fenollosa
59c431b974 Close #61 #57 2014-09-01 16:13:06 +02:00
Carlos Fenollosa
3cf548dc74 Added sections from bb.sh 2014-09-01 15:21:50 +02:00
Carlos Fenollosa
a94b2f5d00 fix #65 2014-08-19 12:11:23 +02:00
Carlos Fenollosa
ec8c670d6a Update README.md 2014-08-19 11:56:33 +02:00
Carlos Fenollosa
472e9d3da3 contributing code 2014-08-19 11:42:39 +02:00
Carlos Fenollosa
1cd13b0f8c updated twitter count api 2014-07-18 09:20:44 +02:00
Carlos Fenollosa
95e36a5137 Now the tweet count links to Topsy 2014-07-17 16:47:57 +02:00
Carlos Fenollosa
53e79106f5 Fix for #60 2014-07-11 09:23:57 +02:00
Carlos Fenollosa
f946c98c32 Twitter count now links to search results 2014-07-07 17:23:24 +02:00
Carlos Fenollosa
1a4ea1702f Update README for cookieless twitter 2014-07-07 17:16:46 +02:00
Carlos Fenollosa
60bedcaa70 Cookieless twitter option 2014-07-07 17:11:14 +02:00
Carlos Fenollosa
63f17fa9f2 Hide warning message in sed 2014-07-03 16:07:05 +02:00
Carlos Fenollosa
db4eb3c6c2 Sed error on mac 2014-06-30 15:51:14 +02:00
Carlos Fenollosa
07e690b151 Sed error on mac 2014-06-30 15:50:58 +02:00
Carlos Fenollosa
64eae60051 Sed error on mac 2014-06-30 15:43:28 +02:00
Carlos Fenollosa
e43d1e56ea Sed error on mac 2014-06-30 15:28:51 +02:00
Carlos Fenollosa
ed746d0b0c Sed error on mac 2014-06-30 15:27:15 +02:00
Carlos Fenollosa
5099d4811b Fixed #56 2014-06-30 11:45:47 +02:00
Carlos Fenollosa
44ec89ae2c Manual fix for #54 2014-06-30 09:06:54 +02:00
Carlos Fenollosa
8e6d61539f Merge pull request #55 from Lex-2008/small-fixes/5
Fixes for blogs without tags
2014-06-30 09:05:15 +02:00
Carlos Fenollosa
cd921faeab Merge pull request #56 from cfenollosa/revert-54-master
Revert "Fixed hardcoded tag filename prefix"
2014-06-30 09:04:45 +02:00
Carlos Fenollosa
19f0c9f283 Revert "Fixed hardcoded tag filename prefix" 2014-06-30 09:04:18 +02:00
Carlos Fenollosa
98e70ff9b5 Merge pull request #54 from Puuhinen/master
Fixed hardcoded tag filename prefix
2014-06-30 09:03:32 +02:00
Alexey Shpakovsky
a5a196773a suppress error messages and don't enter for loop when no tag files exist 2014-06-28 17:18:24 +02:00
Alexey Shpakovsky
93808a0254 don't invoke sed when no tag given
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-28 17:17:30 +02:00
Puuhinen
b4f01d6863 Fixed hardcoded tag filename prefix
posts_with_tags() invoked sed with a hardcoded `tag_&.html`.
Changed to `$prefix_tags&.html`.
2014-06-28 09:50:18 +03:00
Carlos Fenollosa
8dceb6a29c Merge branch 'master' of github.com:cfenollosa/bashblog 2014-06-27 10:24:12 +02:00
Carlos Fenollosa
611bd67bf7 Updated version and contributors 2014-06-27 10:24:02 +02:00
Carlos Fenollosa
f68db9143c Updated README with markdown references 2014-06-27 10:20:47 +02:00
Carlos Fenollosa
0b12c0d69b Merge pull request #53 from Lex-2008/small-fixes/4
Small fixes/4
2014-06-27 10:19:00 +02:00