mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-05 04:47:56 +00:00
fixed tomb umount
correctly checks error status of umount
This commit is contained in:
parent
5eebc89e48
commit
cb6fa07416
5
src/tomb
5
src/tomb
@ -994,10 +994,11 @@ umount_tomb() {
|
||||
|
||||
if [ $tombmount ]; then # tomb is actively mounted
|
||||
func "performing umount of $tombmount"
|
||||
umount ${tombmount} 2> /dev/null
|
||||
rmdir ${tombmount}
|
||||
umount ${tombmount}
|
||||
if ! [ $? = 0 ]; then
|
||||
error "Tomb is busy, cannot umount!"
|
||||
else
|
||||
rmdir ${tombmount}
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user