diff options
author | neodarz <neodarz@neodarz.net> | 2018-01-05 23:39:56 +0100 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-01-05 23:39:56 +0100 |
commit | c2377ec2d293978b13344b920c806c6f330cbe1c (patch) | |
tree | fba81f71eb4090f38e96910b4d02a1f789f097cf /pandoc_version_switch.sh | |
parent | 3e166db4ed9e0cabc4a84d1e5db462b5a66ae76b (diff) | |
download | my_new_personal_website-c2377ec2d293978b13344b920c806c6f330cbe1c.tar.xz my_new_personal_website-c2377ec2d293978b13344b920c806c6f330cbe1c.zip |
final quick fix with pandoc generation
Diffstat (limited to '')
-rwxr-xr-x | pandoc_version_switch.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pandoc_version_switch.sh b/pandoc_version_switch.sh index 8fd28ac6..d49efc2d 100755 --- a/pandoc_version_switch.sh +++ b/pandoc_version_switch.sh @@ -1,11 +1,13 @@ #!/bin/sh if $(pandoc -v | grep --quiet "pandoc 1.19.2.1"); then - sed -i "s/'<p>- generate/'-- generate/g" pyblog - sed -i "s/here <\/p>'/here --'/g" pyblog + sed -i "s/'<p>- generate notes_list/'-- generate notes_list/g" pyblog + sed -i "s/'<p>- generate blog_list/'-- generate blog_list/g" pyblog + sed -i "s/list here <\/p>'/list here --'/g" pyblog elif $(pandoc -v | grep --quiet "pandoc 2.0.6"); then - sed -i "s/'-- generate/'<p>- generate/g" pyblog - sed -i "s/here --'/here <\/p>'/g" pyblog + sed -i "s/'-- generate notes_list/'<p>– generate notes_list/g" pyblog + sed -i "s/'-- generate blog_list/'<p>– generate blog_list/g" pyblog + sed -i "s/list here --'/list here –<\/p>'/g" pyblog else echo $(pandoc -v | grep --quiet "pandoc 2.0.6") fi |