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

svn at pcbsd.org svn at pcbsd.org
Wed Dec 8 07:53:27 PST 2010


Author: kris
Date: 2010-12-08 07:53:27 -0800 (Wed, 08 Dec 2010)
New Revision: 8170

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

Drop the quotes " around wild-card listings



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2010-12-08 15:45:19 UTC (rev 8169)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2010-12-08 15:53:27 UTC (rev 8170)
@@ -4604,12 +4604,12 @@
 	if [ ! -d "${_od}/archived" ] ; then mkdir "${_od}/archived"; fi
 
 	# Make sure we have PBIs to archive
-	ls "${_od}/\*.pbi" >/dev/null 2>/dev/null
+	ls ${_od}/*.pbi >/dev/null 2>/dev/null
         if [ "$?" != "0" ] ; then return ; fi
 
-	echo "Moving old PBIs from ${_od}/\*.pbi -> ${_od}/archived/"
-	mv "${_od}/\*.pbi" "${_od}/archived/"
-	mv "${_od}/\*.sha256" "${_od}/archived/"
+	echo "Moving old PBIs from ${_od}/*.pbi -> ${_od}/archived/"
+	mv ${_od}/*.pbi ${_od}/archived/
+	mv ${_od}/*.sha256 ${_od}/archived/
 
 	# Prune anything beyond the _keepnum
 	oCount="0"



More information about the Commits mailing list