Fixed env vars
This commit is contained in:
parent
842bfc556c
commit
6f2e9898a0
@ -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
4
mktodo
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user