tomb

the crypto undertaker
git clone git://parazyd.org/tomb.git
Log | Files | Refs | README | LICENSE

commit fda78fbf8a23edbdf237b6508049987700ae5cc9
parent 80f8b5838793136525ef738df59cb4ae9f60e69d
Author: hellekin <hellekin@cepheide.org>
Date:   Sun, 26 Oct 2014 14:55:53 -0300

[cleanup] Disallow empty TOMBNAME

Diffstat:
Mtomb | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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"