diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-09-10 19:59:34 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-09-10 19:59:34 +0100 |
commit | 1744058094585ba58f4195d575174a15078bcce4 (patch) | |
tree | 47577ebd4fe1e1e52c6b3ddf5dd3155e28d73083 /dayplan.ksh | |
parent | 3d05c8f053670bed4f1f561fb7dc3764061f360a (diff) | |
parent | 3e3664b0ba1fab9ab2eed2796975d9edaafb1a32 (diff) |
Merge branch 'master' of gitlab.com:yulqen/bash-scripts
Diffstat (limited to 'dayplan.ksh')
-rwxr-xr-x | dayplan.ksh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dayplan.ksh b/dayplan.ksh index df5fe2b..b19a4e7 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 ]] |