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:" _warning "Dumping contents to screen:"
print "${mapfile[$TOMBKEY]}" print "${mapfile[$TOMBKEY]}"
_warning "--" _warning "--"
_sudo umount ${keytmp} _sudo umount ${TOMBKEYFILE}
rm -r $keytmp rm -f ${TOMBKEYFILE}
_failure "Operation aborted." _failure "Operation aborted."
} }