[cleanup] Disallow empty TOMBNAME

This commit is contained in:
hellekin 2014-10-26 14:55:53 -03:00 committed by Jaromil
parent 80f8b58387
commit fda78fbf8a

2
tomb
View File

@ -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"