This commit is contained in:
Solomon Laing 2023-01-27 22:07:48 +10:30
parent 8293fd9c99
commit 64511acab2

View File

@ -8,7 +8,7 @@ if [ -f index.md ]; then
perl -i -p0e 's/START_TOC.*END_TOC/`cat temp.md`/se' index.md
# sed -i "s/START_TOC.*END_TOC/\${toc}/g" index.md
else
echo -e "# Index \n\n START_TOC \n $toc \n END_TOC" > index.md
echo -e "# Index\n\nSTART_TOC\n\n$toc\nEND_TOC" > index.md
fi
rm temp.md