From: Edward Date: Wed, 2 Sep 2026 20:08:57 +0000 (-0500) Subject: Fix for bash octal X-Git-Url: https://us-delaporte.pagekite.me/gitweb/minion.git/commitdiff_plain?ds=inline Fix for bash octal --- diff --git a/bin/mg b/bin/mg index c78f32a..567d1b4 100755 --- a/bin/mg +++ b/bin/mg @@ -4,13 +4,16 @@ # Optionally include a second search term year=`date +%Y` +month=`date +%m` # File to gather all content into topic=$1 if [ ! -n "$1" ]; then echo "A topic to gather is required." exit 1 fi -fname=$(printf "$HOME/Journal/$year/%02d-$topic.md" $(date +%m)) + +mkdir -p "$HOME/Journal/$year" +fname="$HOME/Journal/$year/$month-$topic.md" archive="$HOME/Journal/archive-$year/" # Files to gather