svn commit: r246679 - projects/portbuild/admin/tools

Mark Linimon linimon at FreeBSD.org
Mon Feb 11 14:30:07 UTC 2013


Author: linimon (doc,ports committer)
Date: Mon Feb 11 14:30:06 2013
New Revision: 246679
URL: http://svnweb.freebsd.org/changeset/base/246679

Log:
  "mounted" can return "no".  I fixed this everywhere but this one instance.

Modified:
  projects/portbuild/admin/tools/newmkportbuild

Modified: projects/portbuild/admin/tools/newmkportbuild
==============================================================================
--- projects/portbuild/admin/tools/newmkportbuild	Mon Feb 11 14:29:38 2013	(r246678)
+++ projects/portbuild/admin/tools/newmkportbuild	Mon Feb 11 14:30:06 2013	(r246679)
@@ -67,7 +67,7 @@ if [ -z "${name}" ]; then
 fi
 
 mounted=`zfs list -H -t filesystem -o mounted ${ZFS_VOLUME}`
-if [ ! -z "${mounted}" ]; then
+if [ -z "${mounted}" -o "${mounted}" = "no" ]; then
   echo "ZFS volume ${ZFS_VOLUME} is mounted.  I'll unmount it for you then remount it later."
   zfs umount ${ZFS_VOLUME} 2> /dev/null
 fi


More information about the svn-src-projects mailing list