Fixed env vars

This commit is contained in:
Keith Irwin 2024-07-21 19:18:05 -06:00
parent 842bfc556c
commit 6f2e9898a0
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# Where to store these todo lists
NOTES_DIR="~/todo"
NOTES_DIR="/home/${USER}/todo"
# Where to archive completed lists
ARCHIVE_DIR="${NOTES_DIR}/archive/"
# Template for things to do each day

4
mktodo
View File

@ -2,7 +2,7 @@
# mktodo
# Script to refresh todo lists
source "./env"
source ./env
umask 027
# Create missing lists up to one month from today
@ -14,7 +14,7 @@ for num_days in {01..30}; do
if ! [ -f "${next_list}" ]; then
# Copy template over
sed "1i# $(date --date "${next_date}" +%A)" "${DAILY_TEMPLATE}" \
sed "1i# $(date --date ${next_date} +%A)" "${DAILY_TEMPLATE}" \
>${next_list} && printf 'Created list for %s.\n' "${next_date}"
# Add monthly todo