From 970bd123df1c72628c684a69dcfa6f3b2c556bb2 Mon Sep 17 00:00:00 2001 From: milovann Date: Tue, 3 Dec 2024 22:06:06 +0100 Subject: [PATCH] workflow --- scripts/install.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 scripts/install.sh diff --git a/scripts/install.sh b/scripts/install.sh new file mode 100644 index 0000000..ea4deee --- /dev/null +++ b/scripts/install.sh @@ -0,0 +1,24 @@ + +install_pandoc() +{ + echo "Installing pandoc" + local pandoc_maj="3.1.12" + local pandoc_min="-1" + local pandoc_version=$pandoc_maj$pandoc_min + local pandoc_file="pandoc-$pandoc_version-amd64.deb" + cd /tmp + if [[ ! -f $pandoc_file ]] + then + wget https://github.com/jgm/pandoc/releases/download/$pandoc_maj/pandoc-$pandoc_version-amd64.deb + fi + apt install ./$pandoc_file + echo "xx installed pandoc version:$pandoc_version" + echo "xx check for lastest version in https://github.com/jgm/pandoc/releases" +} + +if [[ $(whereis pandoc) == "" ]] +then + echo "Can't find pandoc" + install_pandoc +fi +