15 lines
537 B
Bash
15 lines
537 B
Bash
#!/usr/bin/env bash
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
export DEBCONF_NOWARNINGS="yes"
|
|
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
|
apt-get -qq update
|
|
apt-get -qq -y install curl pandoc
|
|
|
|
_VER=$(curl -s "https://api.github.com/repos/jgm/pandoc/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')
|
|
|
|
curl -sLo "pandoc-${_VER}-1-amd64.deb" "https://github.com/jgm/pandoc/releases/download/${_VER}/pandoc-${_VER}-1-amd64.deb"
|
|
|
|
apt-get -qq -y install "./pandoc-${_VER}-1-amd64.deb"
|
|
apt-get -qq -y autoremove
|