summaryrefslogtreecommitdiff
path: root/wr/mkhol
diff options
context:
space:
mode:
Diffstat (limited to 'wr/mkhol')
-rwxr-xr-xwr/mkhol10
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"