mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-22 12:35:13 +00:00
Fix inconsistent cleanup on forge_key failure
Address concern raised in #360
This commit is contained in:
parent
187a627022
commit
94d8ad497f
4
tomb
4
tomb
@ -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."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user