]> apps.delaporte.us Git - dotfiles.git/blob - install/mdtohtml.sh
93feaa87a6c9ac351c4c91986850b77687eaafcc
[dotfiles.git] / install / mdtohtml.sh
1 #!/usr/bin/bash
2 INSTALL=$(find ~/Downloads/mdtohtml*.gz)
3 INSTALL_TO="$HOME/bin"
4 if [ ! -f $INSTALL ]; then
5 echo "~/Downloads is missing instal file from https://github.com/sgaunet/mdtohtml/releases"
6 exit 1
7 fi
8 echo "Installing from $INSTALL..."
9 tar xf $INSTALL
10
11 mkdir -p "$INSTALL_TO"
12 cat LICENSE
13 rm LICENSE
14 mv mdtohtml $INSTALL_TO