diff options
author | Carlos Bautista <carlosbm@gmail.com> | 2013-03-08 00:00:40 +0100 |
---|---|---|
committer | Carlos Bautista <carlosbm@gmail.com> | 2013-03-08 00:00:40 +0100 |
commit | ed14c775e313bed74ad0cfdcf5abb2e0ea73a9b7 (patch) | |
tree | 97905e8de841ba7c0ef407199f40d3a94a96204a /bb.sh | |
parent | 2abc8068347254b6ea8463e2541bcf757374317a (diff) | |
parent | 28aa6a78426de6ee82a98fdc93756bfc706e8b0e (diff) |
Merge remote-tracking branch 'cfenollosa/master'
Diffstat (limited to 'bb.sh')
-rwxr-xr-x | bb.sh | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -86,8 +86,6 @@ # Global variables # It is recommended to perform a 'rebuild' after changing any of this in the code global_variables() { - # If you want to fork the project please contact me first, I wouldn't mind opening a git - # or some shared code base and collaborate with other people. global_software_name="BashBlog" global_software_version="1.5.1" @@ -174,7 +172,7 @@ google_analytics() { # Please note that this function does not automatically republish anything, as # it is usually called from 'main'. # -# 'edit' is kind of an advanced function, as it leaves to the user the responsability +# 'edit' is kind of an advanced function, as it leaves to the user the responsibility # of editing an html file # # $1 the file to edit @@ -413,7 +411,7 @@ rebuild_index() { if [ "$global_feedburner" == "" ]; then echo '<div id="all_posts"><a href="'$archive_index'">View more posts</a> — <a href="'$blog_feed'">'$template_subscribe'</a></div>' >> "$contentfile" else - echo '<div id="all_posts"><a href="'$archive_index'">'$template_archive'</a> — <a href="'$global_feedburner'">Susbcribe</a></div>' >> "$contentfile" + echo '<div id="all_posts"><a href="'$archive_index'">'$template_archive'</a> — <a href="'$global_feedburner'">Subscribe</a></div>' >> "$contentfile" fi echo "" @@ -601,7 +599,7 @@ reset() { echo "Are you sure you want to delete all blog entries? Please write \"Yes, I am!\" " read line if [ "$line" == "Yes, I am!" ]; then - rm "*.html" "*.css" "*.rss" + rm *.html *.css *.rss echo "Deleted all posts, stylesheets and feeds." else echo "Phew! You dodged a bullet there. Nothing was modified." @@ -609,7 +607,7 @@ reset() { } # Main function -# Encapsuled on its own function for readability purposes +# Encapsulated on its own function for readability purposes # # $1 command to run # $2 file name of a draft to continue editing (optional) |