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
|
if echo $i | grep '^posts/' > /dev/null; then
|
||||||
DATE=$(cat $dst/$i | grep '<!--- date: .*-.*-.* --->' | cut -d ' ' -f 3-3)
|
DATE=$(cat $dst/$i | grep '<!--- date: .*-.*-.* --->' | cut -d ' ' -f 3-3)
|
||||||
url="$DATE;$i"
|
url="$DATE;$i"
|
||||||
sorted_urls="$(echo -n "$sorted_urls\n$url" | sort -r)"
|
sorted_urls="$(printf "$sorted_urls\n$url" | sort -r)"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user