aboutsummaryrefslogtreecommitdiff
path: root/tombopen
diff options
context:
space:
mode:
Diffstat (limited to 'tombopen')
-rwxr-xr-xtombopen3
1 files changed, 3 insertions, 0 deletions
diff --git a/tombopen b/tombopen
index 9cd492d..506d503 100755
--- a/tombopen
+++ b/tombopen
@@ -17,6 +17,9 @@ elif [ -z "$TOMB" ]; then
echo "usage: $BASENAME <tomb>"
echo "available tombs: `ls $TOMBS | xargs basename -a -s .tomb | xargs echo`"
exit 1
+elif [ ! -e "$TOMBS/$TOMB.tomb" ]; then
+ echo "tomb not found: $TOMBS/$TOMB.tomb"
+ exit 1
elif [ ! -e "$KEYS/$TOMB.tomb.key" ]; then
echo "missing keyfile $KEYS/$TOMB.tomb.key"
exit 1