minor change

This commit is contained in:
Solomon Laing 2023-01-27 22:10:11 +10:30
parent 7bba4c0e61
commit fe81858e09

View File

@ -2,7 +2,7 @@
toc=$(zk-gen-dir-md-toc)
echo -e "START_TOC\n$toc\n\nEND_TOC" > temp.md
echo -e "START_TOC$toc\nEND_TOC" > temp.md
if [ -f index.md ]; then
perl -i -p0e 's/START_TOC.*END_TOC/`cat temp.md`/se' index.md