mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-15 03:00:11 +00:00
22 lines
574 B
Bash
22 lines
574 B
Bash
#!/bin/bash
|
|
# Description: Document conversion tool
|
|
set -e
|
|
|
|
case $_PLATFORM in
|
|
darwin)
|
|
_recipe brew
|
|
_brew pandoc
|
|
;;
|
|
arch)
|
|
_recipe _arch
|
|
_pacman pandoc
|
|
;;
|
|
debian)
|
|
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.10/pandoc-2.10-1-amd64.deb"
|
|
_run "Install pandoc" sudo dpkg -i "$__pandoc_tmp"
|
|
rm -f "$__pandoc_tmp"
|
|
fi
|
|
;;
|
|
esac
|