diff --git a/src/tomb b/src/tomb index 3a606bf..00308fd 100755 --- a/src/tomb +++ b/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