mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-02-08 23:08:32 +00:00
[cleanup] Disallow empty TOMBNAME
This commit is contained in:
parent
80f8b58387
commit
fda78fbf8a
2
tomb
2
tomb
@ -247,6 +247,8 @@ _plot() {
|
|||||||
# The tomb name is TOMBFILE without an extension.
|
# The tomb name is TOMBFILE without an extension.
|
||||||
# It can start with dots: ..foo.tomb -> ..foo
|
# It can start with dots: ..foo.tomb -> ..foo
|
||||||
TOMBNAME="${TOMBFILE%\.[^\.]*}"
|
TOMBNAME="${TOMBFILE%\.[^\.]*}"
|
||||||
|
[[ -z $TOMBNAME ]] && {
|
||||||
|
_failure "Tomb won't work without a TOMBNAME." }
|
||||||
|
|
||||||
# Normalize tomb name
|
# Normalize tomb name
|
||||||
TOMBFILE="$TOMBNAME.tomb"
|
TOMBFILE="$TOMBNAME.tomb"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user