From: Mark Wooding Date: Sat, 15 Jul 2017 17:16:37 +0000 (+0100) Subject: cryptop.recover: Delete the recovered nub if it doesn't look right. X-Git-Url: https://git.distorted.org.uk/~mdw/distorted-keys/commitdiff_plain/b3f674244b076df83216ac6ebda0501ee03a0ef9 cryptop.recover: Delete the recovered nub if it doesn't look right. Don't just leave the half-finished thing lying about. --- diff --git a/cryptop.recover b/cryptop.recover index c4b1e7f..f1fc9db 100755 --- a/cryptop.recover +++ b/cryptop.recover @@ -72,6 +72,7 @@ nubbin=$(nubid <$knub.new) case "$nubbin" in "$nubid") ;; *) + rm -f $knub.new echo >&2 "$quis: recovery produced incorrect nub" exit 1 ;;