1
0
mirror of https://git.envs.net/envs/bashblog.git synced 2024-06-26 10:57:10 +00:00

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

This commit is contained in:
Alexey Shpakovsky 2014-02-26 19:58:15 +01:00
parent 9ee8c6ae65
commit d850e6d9d4

2
bb.sh
View File

@ -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