From 9ee8c6ae65c079b822a0d935e3f60d4ddd2fa680 Mon Sep 17 00:00:00 2001 From: Alexey Shpakovsky Date: Wed, 26 Feb 2014 19:25:02 +0100 Subject: [PATCH 1/2] Update copyright year --- bb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bb.sh b/bb.sh index e6e34ad..3ce17ea 100755 --- a/bb.sh +++ b/bb.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # BashBlog, a simple blog system written in a single bash script -# Copyright: Carles Fenollosa , 2011-2013 +# Copyright: Carles Fenollosa , 2011-2014 # With contributions from many others: # https://github.com/carlesfe/bashblog/contributors From d850e6d9d47ae08b4cf191fc370c7a9820ee0d1e Mon Sep 17 00:00:00 2001 From: Alexey Shpakovsky Date: Wed, 26 Feb 2014 19:58:15 +0100 Subject: [PATCH 2/2] fix date format in output of "bb.sh list" --- bb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bb.sh b/bb.sh index 3ce17ea..c98713d 100755 --- a/bb.sh +++ b/bb.sh @@ -592,7 +592,7 @@ list_posts() { n=1 for i in $(ls -t *.html); do if [[ "$i" == "$index_file" ]] || [[ "$i" == "$archive_index" ]]; then continue; fi - line="$n # $(awk '/

/, /<\/a><\/h3>/{if (!/

/ && !/<\/a><\/h3>/) print}' $i) # $(LC_ALL=$date_locale date -r $i +"date_format")" + line="$n # $(awk '/

/, /<\/a><\/h3>/{if (!/

/ && !/<\/a><\/h3>/) print}' $i) # $(LC_ALL=$date_locale date -r $i +"$date_format")" lines="${lines}""$line""\n" # Weird stuff needed for the newlines n=$(( $n + 1 )) done