From 5ed7cdfd4ac59105ccf927a7f77816264402d6d9 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 9 Sep 2022 14:28:58 +0100 Subject: dayplan now enables adding of future dates --- dayplan.ksh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dayplan.ksh b/dayplan.ksh index b546a5e..eaf6135 100755 --- a/dayplan.ksh +++ b/dayplan.ksh @@ -2,6 +2,12 @@ # our target file DATE=$(date +\%Y-\%m-\%d) + +if [ $# -ne 0 ] +then + DATE=$1 +fi + TODAY_PLANNER=~/Notes/journal/day_plans/$DATE.txt if [[ -a $TODAY_PLANNER ]] -- cgit v1.2.3