diff options
author | neodarz <neodarz@neodarz.net> | 2018-01-05 21:11:30 +0100 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-01-05 21:11:30 +0100 |
commit | 3e166db4ed9e0cabc4a84d1e5db462b5a66ae76b (patch) | |
tree | c11e5325c7faff594b45aedc8f0867a2dc068626 | |
parent | 018c08598a58603a9681807e129a999a356ca8bd (diff) | |
download | my_new_personal_website-3e166db4ed9e0cabc4a84d1e5db462b5a66ae76b.tar.xz my_new_personal_website-3e166db4ed9e0cabc4a84d1e5db462b5a66ae76b.zip |
fix for use sed with correct pandoc version
-rwxr-xr-x | pandoc_version_switch.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pandoc_version_switch.sh b/pandoc_version_switch.sh index 165bdb32..8fd28ac6 100755 --- a/pandoc_version_switch.sh +++ b/pandoc_version_switch.sh @@ -1,9 +1,11 @@ #!/bin/sh -if $(pandoc -v | grep --quiet "pandoc 2.0.6"); then - sed -i "s/'<p>– generate/'-– generate/g" pyblog -elif $(pandoc -v | grep --quiet "pandoc 1.19.2.1"); then +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 +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 else echo $(pandoc -v | grep --quiet "pandoc 2.0.6") fi |