mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-29 08:14:08 +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
|
if [ $tombmount ]; then # tomb is actively mounted
|
||||||
func "performing umount of $tombmount"
|
func "performing umount of $tombmount"
|
||||||
umount ${tombmount} 2> /dev/null
|
umount ${tombmount}
|
||||||
rmdir ${tombmount}
|
|
||||||
if ! [ $? = 0 ]; then
|
if ! [ $? = 0 ]; then
|
||||||
error "Tomb is busy, cannot umount!"
|
error "Tomb is busy, cannot umount!"
|
||||||
|
else
|
||||||
|
rmdir ${tombmount}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user