From fda78fbf8a23edbdf237b6508049987700ae5cc9 Mon Sep 17 00:00:00 2001 From: hellekin Date: Sun, 26 Oct 2014 14:55:53 -0300 Subject: [PATCH] [cleanup] Disallow empty TOMBNAME --- tomb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tomb b/tomb index 03c0b66..fd96597 100755 --- a/tomb +++ b/tomb @@ -247,6 +247,8 @@ _plot() { # The tomb name is TOMBFILE without an extension. # It can start with dots: ..foo.tomb -> ..foo TOMBNAME="${TOMBFILE%\.[^\.]*}" + [[ -z $TOMBNAME ]] && { + _failure "Tomb won't work without a TOMBNAME." } # Normalize tomb name TOMBFILE="$TOMBNAME.tomb"