commit cb6fa0741677c2c94683636843217bfb5bb97539
parent 5eebc89e48d47dab70f59f5c672b088149158f95
Author: Jaromil <jaromil@dyne.org>
Date: Sat, 3 Sep 2011 12:43:21 +0200
fixed tomb umount
correctly checks error status of umount
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git 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