logo

utils

~/.local/bin tools and git-hooks
commit: 727edd162c0895d877dceb0980efec6053109d1a
parent: b7614a805a6ef25eb82019d6244b73b8e770b705
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue,  8 Jan 2019 05:56:50 +0100

bin/timey-whyme.sh: Add die()

Diffstat:

Mbin/timey-whyme.sh7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/bin/timey-whyme.sh b/bin/timey-whyme.sh @@ -10,8 +10,13 @@ usage() { printf "Usage: [[all|both|cal|todo]\n" } +die() { + echo $1 + exit +} + verify_xxd() { - [ -e "${xdd}/${1}" ] || echo "Please create a file a the following, see examples for help: ${xdd}/${1}" + [ -e "${xdd}/${1}" ] || die "Please create a file a the following, see examples for help: ${xdd}/${1}" } todo() {