From ad4c61ab7de7788d6ad70fec42a692af70c00f9d Mon Sep 17 00:00:00 2001 From: ngie Date: Fri, 1 Jan 2016 00:16:54 +0000 Subject: Only try to unmount/remove mountpt if it's defined --- tests/sys/geom/class/uzip/conf.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/sys/geom/class/uzip/conf.sh b/tests/sys/geom/class/uzip/conf.sh index 8a3b459..9a22841 100755 --- a/tests/sys/geom/class/uzip/conf.sh +++ b/tests/sys/geom/class/uzip/conf.sh @@ -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 -- cgit v1.1