diff options
author | ngie <ngie@FreeBSD.org> | 2016-01-01 00:16:54 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-01-01 00:16:54 +0000 |
commit | ad4c61ab7de7788d6ad70fec42a692af70c00f9d (patch) | |
tree | c2b8507c789cdb458531ed58d3b1e2301cf222e2 /tests | |
parent | a859d88d20a0d54589ef14cbf1b9944bc053d67a (diff) | |
download | FreeBSD-src-ad4c61ab7de7788d6ad70fec42a692af70c00f9d.zip FreeBSD-src-ad4c61ab7de7788d6ad70fec42a692af70c00f9d.tar.gz |
Only try to unmount/remove mountpt if it's defined
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/sys/geom/class/uzip/conf.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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 |