mirror of
https://github.com/correl/dotfiles.git
synced 2024-12-22 19:17:34 +00:00
[provisioning] Use pre-built pandoc binary in linux
This commit is contained in:
parent
a90e4860a7
commit
8705e8189f
1 changed files with 14 additions and 2 deletions
|
@ -2,5 +2,17 @@
|
|||
# Description: Document conversion tool
|
||||
set -e
|
||||
|
||||
_recipe brew
|
||||
_brew pandoc
|
||||
case $_PLATFORM in
|
||||
darwin)
|
||||
_recipe brew
|
||||
_brew pandoc
|
||||
;;
|
||||
*)
|
||||
if ! dpkg -s pandoc >/dev/null 2>&1; then
|
||||
__pandoc_tmp="$(mktemp)"
|
||||
_run "Download pandoc" curl -L -o "$__pandoc_tmp" "https://github.com/jgm/pandoc/releases/download/2.2/pandoc-2.2-1-amd64.deb"
|
||||
_run "Install pandoc" sudo dpkg -i "$__pandoc_tmp"
|
||||
rm -f "$__pandoc_tmp"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue