Browse Source

fix date format in output of "bb.sh list"

Alexey Shpakovsky 11 years ago
parent
commit
d850e6d9d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bb.sh

+ 1 - 1
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 '/<h3><a class="ablack" href=".+">/, /<\/a><\/h3>/{if (!/<h3><a class="ablack" href=".+">/ && !/<\/a><\/h3>/) print}' $i) # $(LC_ALL=$date_locale date -r $i +"date_format")"
+        line="$n # $(awk '/<h3><a class="ablack" href=".+">/, /<\/a><\/h3>/{if (!/<h3><a class="ablack" href=".+">/ && !/<\/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