diff options
author | George Abbott <george@gabbott.dev> | 2023-10-31 17:54:07 +0000 |
---|---|---|
committer | George Abbott <george@gabbott.dev> | 2023-10-31 17:54:07 +0000 |
commit | 4d0bd914e7c1ee65f4036e60149a7b891906a5d3 (patch) | |
tree | c2a6751823e064e003cd4f6166df07bfc106d7eb /wr/mkhol |
Commit all to date.
Diffstat (limited to 'wr/mkhol')
-rwxr-xr-x | wr/mkhol | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/wr/mkhol b/wr/mkhol new file mode 100755 index 0000000..4b8c02a --- /dev/null +++ b/wr/mkhol @@ -0,0 +1,10 @@ +#!/bin/sh +# mkhol +if [ -z "$HOLIDAY" ] ; then HOL="$HOLIDAY" else HOL="$HOME/docs/wr/lle/hol" fi +if [ -z "$1" ] ; then + # TODO: add logic to verify the date is valid + echo "You need to provide a date parameter"; return; fi +if [ -z "$2" ] ; then echo "Please enter a place where you went."; + return; fi + +mkdir -p "$HOL/$1-$2" |