Fix inconsistent cleanup on forge_key failure

Address concern raised in #360
This commit is contained in:
Jaromil 2019-08-22 11:47:14 +02:00
parent 187a627022
commit 94d8ad497f

4
tomb
View File

@ -1997,8 +1997,8 @@ forge_key() {
_warning "Dumping contents to screen:"
print "${mapfile[$TOMBKEY]}"
_warning "--"
_sudo umount ${keytmp}
rm -r $keytmp
_sudo umount ${TOMBKEYFILE}
rm -f ${TOMBKEYFILE}
_failure "Operation aborted."
}