t[cleanup] Disallow empty TOMBNAME - tomb - the crypto undertaker (HTM) git clone git://parazyd.org/tomb.git (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit fda78fbf8a23edbdf237b6508049987700ae5cc9 (DIR) parent 80f8b5838793136525ef738df59cb4ae9f60e69d (HTM) Author: hellekin <hellekin@cepheide.org> Date: Sun, 26 Oct 2014 14:55:53 -0300 t[cleanup] Disallow empty TOMBNAME Diffstat: M tomb | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) --- (DIR) diff --git a/tomb b/tomb t@@ -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"