]> us-delaporte.pagekite.me Git - minion.git/commitdiff
Fix for bash octal assumption
authorEdward Delaporte <edward@delaporte.us>
Sat, 1 Aug 2026 22:19:09 +0000 (17:19 -0500)
committerEdward Delaporte <edward@delaporte.us>
Sat, 1 Aug 2026 22:19:09 +0000 (17:19 -0500)
bin/daily

index 84456cb08a8749044057381e547899544b7902a6..9618c318e228b3b6f353c159a2c96b67205ea221 100755 (executable)
--- a/bin/daily
+++ b/bin/daily
@@ -5,7 +5,8 @@
 year=`date +%Y`
 topic='daily'
 mkdir -p "$HOME/Journal/$year"
 year=`date +%Y`
 topic='daily'
 mkdir -p "$HOME/Journal/$year"
-fname=$(printf "$HOME/Journal/$year/%02d-$topic.md" $(date +%m))
+month=`date +%m`
+fname="$HOME/Journal/$year/$month-$topic.md"
 
 if [ -z ${EDITOR} ]; then
        echo "EDITOR unset, defaulting to Nano"
 
 if [ -z ${EDITOR} ]; then
        echo "EDITOR unset, defaulting to Nano"