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

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


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

Log:
  Fix sense of the test.  It is the opposite of the others.

Modified:
  projects/portbuild/admin/tools/newmkportbuild

Modified: projects/portbuild/admin/tools/newmkportbuild
==============================================================================
--- projects/portbuild/admin/tools/newmkportbuild	Mon Feb 11 14:30:06 2013	(r246679)
+++ projects/portbuild/admin/tools/newmkportbuild	Mon Feb 11 14:32:06 2013	(r246680)
@@ -67,7 +67,7 @@ if [ -z "${name}" ]; then
 fi
 
 mounted=`zfs list -H -t filesystem -o mounted ${ZFS_VOLUME}`
-if [ -z "${mounted}" -o "${mounted}" = "no" ]; then
+if [ ! -z "${mounted}" -a "${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