From e6075d08ce05432bb3a99dc43c077c92a3dff284 Mon Sep 17 00:00:00 2001 From: Jaromil Date: Mon, 24 Nov 2014 20:06:23 +0100 Subject: [PATCH] really fail to not overwrite keys when forging --- tomb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tomb b/tomb index 96475bf..cbec990 100755 --- a/tomb +++ b/tomb @@ -1370,8 +1370,8 @@ forge_key() { # Do not overwrite any files accidentally [[ -r "$destkey" ]] && { - _warning "Forging this key would overwrite an existing file. Operation aborted." - ls -lh $destkey } + ls -lh $destkey + _failure "Forging this key would overwrite an existing file. Operation aborted." } # Update algorithm if it was passed on the command line with -o { option_is_set -o } && { algopt="$(option_value -o)" }