From 4d0bd914e7c1ee65f4036e60149a7b891906a5d3 Mon Sep 17 00:00:00 2001 From: George Abbott Date: Tue, 31 Oct 2023 17:54:07 +0000 Subject: Commit all to date. --- wr/mkhol | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 wr/mkhol (limited to 'wr/mkhol') 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" -- cgit v1.2.1