From 58c61cd3aa0126bf6c42a1022ad417dd257c12ce Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Wed, 8 Jun 2022 20:20:15 -0400 Subject: [PATCH] Use printf instead of echo in script --- ssg6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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