mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-26 14:56:33 +00:00
Merge pull request #53 from davinerd/fix_remove_mountpoint_51
Removing default mount point when umounting the tomb
This commit is contained in:
commit
5d54a3b121
3
src/tomb
3
src/tomb
@ -955,9 +955,12 @@ umount_tomb() {
|
||||
if ! [ $? = 0 ]; then
|
||||
error "Tomb is busy, cannot umount!"
|
||||
else
|
||||
# this means we used a "default" mount point
|
||||
if [ "${tombmount}" = "/media/${tombname}.tomb" ]; then
|
||||
rmdir ${tombmount}
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
cryptsetup luksClose $mapper
|
||||
if ! [ $? = 0 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user