mirror of https://github.com/rwxrob/dot
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
257 B
Plaintext
10 lines
257 B
Plaintext
2 years ago
|
#!/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"
|
||
|
dpkg -i "/tmp/$deb"
|