From: Edward Delaporte Date: Wed, 3 Jun 2026 23:07:24 +0000 (-0500) Subject: Fixup for mdtohtml X-Git-Url: https://apps.delaporte.us/gitweb/minion.git/commitdiff_plain/97a73fbd7911229147e1c5f19bc9dbd1734ae67d?hp=6d643f5173e34d34bf8510b43aa51b7591646670 Fixup for mdtohtml --- diff --git a/bin/mp b/bin/mp index 823f3b4..dd6d9b5 100755 --- a/bin/mp +++ b/bin/mp @@ -2,11 +2,16 @@ year=`date +%Y` files=$(find $HOME/Journal/$year -type f -iname "*$1*\.md") +if [ -z ${BROWSER} ]; then + echo "BROWSER unset, defaulting to Firefox" + export BROWSER=firefox +fi + counter=0 for file in $files; do # echo $file - mdtohtml $file > $file.html - firefox $file.html + mdtohtml $file $file.html + $BROWSER $file.html counter=$((counter + 1)) if [ $counter -gt 4 ]; then echo "Aborting after 4 files."