Created
March 28, 2016 14:14
-
-
Save rossant/8b751a15d71d6d9403a8 to your computer and use it in GitHub Desktop.
Install latest .deb pandoc, using the GitHub release page -- useful on CI systems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
URL="https://github.com/jgm/pandoc/releases/latest" | |
PANDOCPAGE="$(wget $URL -q -O -)" | |
DEBURL="$(echo $PANDOCPAGE | grep -oP '"([^"]+.deb)"')" | |
DEBURL="${DEBURL:1:-1}" | |
URL="http://github.com/$DEBURL" | |
wget $URL -O pandoc.deb | |
sudo dpkg -i pandoc.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment