diff --git a/ssg6 b/ssg6 index 1d27e36..bbcb360 100755 --- a/ssg6 +++ b/ssg6 @@ -257,7 +257,7 @@ render_article_list() { if echo $i | grep '^posts/' > /dev/null; then DATE=$(cat $dst/$i | grep '' | cut -d ' ' -f 3-3) url="$DATE;$i" - sorted_urls="$(echo -n "$sorted_urls\n$url" | sort -r)" + sorted_urls="$(printf "$sorted_urls\n$url" | sort -r)" fi done