aboutsummaryrefslogtreecommitdiff
path: root/pandoc_version_switch.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xpandoc_version_switch.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/pandoc_version_switch.sh b/pandoc_version_switch.sh
new file mode 100755
index 00000000..165bdb32
--- /dev/null
+++ b/pandoc_version_switch.sh
@@ -0,0 +1,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
+