]> us-delaporte.pagekite.me Git - minion.git/blob - setup-mp.sh
Add backup of wiki page
[minion.git] / setup-mp.sh
1 #!/usr/bin/bash
2 INSTALL=$(find ~/Downloads/mdtohtml*.gz)
3 INSTALL_TO="$HOME/bin"
4 set -e
5 if [ ! -n "$INSTALL" ]; then
6 echo "~/Downloads is missing install file mdtohtml*.gz"
7 echo "Get it from https://github.com/sgaunet/mdtohtml/releases"
8 exit 1
9 fi
10
11 echo "Installing from $INSTALL..."
12 cd /tmp
13 tar xf $INSTALL
14
15 mkdir -p "$INSTALL_TO"
16 mv mdtohtml $INSTALL_TO
17