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

svn at pcbsd.org svn at pcbsd.org
Mon Nov 12 11:35:55 PST 2012


Author: kris
Date: 2012-11-12 19:35:55 +0000 (Mon, 12 Nov 2012)
New Revision: 20197

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

Make appname all lower



Modified: pcbsd/current/src-sh/pbi-manager/pbi-manager
===================================================================
--- pcbsd/current/src-sh/pbi-manager/pbi-manager	2012-11-12 19:34:58 UTC (rev 20196)
+++ pcbsd/current/src-sh/pbi-manager/pbi-manager	2012-11-12 19:35:55 UTC (rev 20197)
@@ -3422,7 +3422,8 @@
 	# Copy over the application to the correct location
         echo ${PBI_PROGDIRPATH} | grep -q "^${PBI_APPDIR}/"
 	if [ $? -ne 0 ] ; then
-	   newPDP="${PBI_APPDIR}/${PBI_PROGNAME}-${ARCH}"
+	   _pbilow="`echo ${PBI_PROGNAME} | tr '[:upper:]' '[:lower:]' | sed 's| ||g'`"
+	   newPDP="${PBI_APPDIR}/${_pbilow}-${ARCH}"
 	   if [ -d "${newPDP}" ] ; then exit_err "Error: ${newPDP} already exists!" ; fi	
 	   cp -r ${PBI_PROGDIRPATH} ${newPDP}
 	   PBI_PROGDIRPATH="${newPDP}"



More information about the Commits mailing list