rwxrob-dot/install/ubuntu/install-pandoc
2022-02-19 00:50:21 +00:00

10 lines
262 B
Bash
Executable File

#!/bin/sh
set -e
loc=$(curl -o /dev/null -sIw "%{redirect_url}" \
'https://github.com/jgm/pandoc/releases/latest')
vers=${loc##*/}
deb="pandoc-$vers-1-amd64.deb"
uri=${loc%/tag*}/download/$vers/$deb
curl -sL "$uri" -o "/tmp/$deb"
sudo dpkg -i "/tmp/$deb"