Use printf instead of echo in script
This commit is contained in:
parent
02648a8552
commit
58c61cd3aa
2
ssg6
2
ssg6
@ -257,7 +257,7 @@ render_article_list() {
|
||||
if echo $i | grep '^posts/' > /dev/null; then
|
||||
DATE=$(cat $dst/$i | grep '<!--- date: .*-.*-.* --->' | 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user