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

svn at pcbsd.org svn at pcbsd.org
Wed Dec 8 07:45:19 PST 2010


Author: kris
Date: 2010-12-08 07:45:19 -0800 (Wed, 08 Dec 2010)
New Revision: 8169

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

Needed some \ for *



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2010-12-08 15:19:46 UTC (rev 8168)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2010-12-08 15:45:19 UTC (rev 8169)
@@ -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