From 97a73fbd7911229147e1c5f19bc9dbd1734ae67d Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Wed, 3 Jun 2026 18:07:24 -0500 Subject: [PATCH] Fixup for mdtohtml --- bin/mp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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." -- 2.47.3