Only try to unmount/remove mountpt if it's defined
This commit is contained in:
parent
a859d88d20
commit
ad4c61ab7d
@ -6,8 +6,10 @@ base=`basename $0`
|
||||
|
||||
uzip_test_cleanup()
|
||||
{
|
||||
umount $mntpoint
|
||||
rmdir $mntpoint
|
||||
if [ -n "$mntpoint" ]; then
|
||||
umount $mntpoint
|
||||
rmdir $mntpoint
|
||||
fi
|
||||
geom_test_cleanup
|
||||
}
|
||||
trap uzip_test_cleanup ABRT EXIT INT TERM
|
||||
|
Loading…
x
Reference in New Issue
Block a user