From 0a5652a2bb4c1a8add2e26b3580154a3c9d61606 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Sun, 2 Aug 2026 18:24:07 -0500 Subject: [PATCH] Fixup --- setup-mp.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/setup-mp.sh b/setup-mp.sh index b47acf5..2f6be25 100755 --- a/setup-mp.sh +++ b/setup-mp.sh @@ -1,3 +1,17 @@ -ENVS=$HOME/envs -cd $ENVS;python -m venv docs -$ENVS/docs/bin/pip install md2pdf[cli] # For PDF +#!/usr/bin/bash +INSTALL=$(find ~/Downloads/mdtohtml*.gz) +INSTALL_TO="$HOME/bin" +set -e +if [ ! -n "$INSTALL" ]; then + echo "~/Downloads is missing install file mdtohtml*.gz" + echo "Get it from https://github.com/sgaunet/mdtohtml/releases" + exit 1 +fi + +echo "Installing from $INSTALL..." +cd /tmp +tar xf $INSTALL + +mkdir -p "$INSTALL_TO" +mv mdtohtml $INSTALL_TO + -- 2.47.3