blob: 4b8c02a3c7cc392e457120f21589e61dee7d2245 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
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"
|