[PC-BSD Commits] r13695 - pcbsd/current/src-sh/pbi-manager

svn at pcbsd.org svn at pcbsd.org
Thu Nov 3 08:03:59 PDT 2011


Author: kris
Date: 2011-11-03 08:03:59 -0700 (Thu, 03 Nov 2011)
New Revision: 13695

Modified:
   pcbsd/current/src-sh/pbi-manager/pbi-manager
Log:

Hide a few mv operations




Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2011-11-03 14:39:58 UTC (rev 13694)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2011-11-03 15:03:59 UTC (rev 13695)
@@ -5852,8 +5852,8 @@
         if [ "$?" != "0" ] ; then return ; fi
 
 	echo "Moving old PBIs from ${_od}/*.pbi -> ${_od}/archived/"
-	mv ${_od}/*.pbi ${_od}/archived/
-	mv ${_od}/*.sha256 ${_od}/archived/
+	mv ${_od}/*.pbi ${_od}/archived/ 2>/dev/null
+	mv ${_od}/*.sha256 ${_od}/archived/ 2>/dev/null
 
 	# Prune anything beyond the _keepnum
         echo "Checking for more than $_keepnum PBIs in archive"
@@ -5953,7 +5953,7 @@
 		chroot "${PBI_CHROOTDIR}" "/usr/local/sbin/pbi_makeport_chroot" "$@"
 		_err=$?
 		if [ "$_err" = "0" ] ; then
-			mv ${PBI_CHROOTDIR}/pbiout/*.pbi ${PBI_CREATE_OUTDIR}/
+			mv ${PBI_CHROOTDIR}/pbiout/*.pbi ${PBI_CREATE_OUTDIR}/ 
 			mv ${PBI_CHROOTDIR}/pbiout/*.sha256 ${PBI_CREATE_OUTDIR}/
 		fi
 



More information about the Commits mailing list