aboutsummaryrefslogtreecommitdiff
path: root/pandoc_version_switch.sh
blob: 8fd28ac61bea64069f45bc0b904ea95838327ab0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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
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