diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-09-09 14:28:58 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-09-09 14:28:58 +0100 |
commit | 5ed7cdfd4ac59105ccf927a7f77816264402d6d9 (patch) | |
tree | baacb34b9674f21d10ba9a9e54f20a670158ea3d /dayplan.ksh | |
parent | 90ccf1cb8572604698a62bdedcb62b9f33e9928a (diff) |
dayplan now enables adding of future dates
Diffstat (limited to '')
-rwxr-xr-x | dayplan.ksh | 6 |
1 files changed, 6 insertions, 0 deletions
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 ]] |