aboutsummaryrefslogtreecommitdiff
path: root/pandoc_version_switch.sh
blob: 165bdb327dbd13b92bda310d624e408d619f3d87 (plain)
1
2
3
4
5
6
7
8
9
10
#!/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
    sed -i "s/'-- generate/'<p>- generate/g" pyblog
else
    echo $(pandoc -v | grep --quiet "pandoc 2.0.6")
fi