[PC-BSD Commits] r6843 - pcbsd-projects/pbi-manager/module-examples

svn at pcbsd.org svn at pcbsd.org
Tue Jun 1 10:46:13 PDT 2010


Author: kris
Date: 2010-06-01 10:46:13 -0700 (Tue, 01 Jun 2010)
New Revision: 6843

Modified:
   pcbsd-projects/pbi-manager/module-examples/convertoldmod.sh
Log:

Added fix to convertoldmod.sh helper script, don't make empty scripts



Modified: pcbsd-projects/pbi-manager/module-examples/convertoldmod.sh
===================================================================
--- pcbsd-projects/pbi-manager/module-examples/convertoldmod.sh	2010-06-01 17:38:07 UTC (rev 6842)
+++ pcbsd-projects/pbi-manager/module-examples/convertoldmod.sh	2010-06-01 17:46:13 UTC (rev 6843)
@@ -20,6 +20,8 @@
 	| grep -v "/PCBSD/Services/" \
 	| grep -v "kdialog" \
 	 >>"${nsct}"
+	_ce=`cat "${nsct}" | grep -v "^#" | sed '/^$/d'`
+	if [ -z "$_ce" ] ; then rm "${nsct}" ; fi
 }
 
 odir="${1}"



More information about the Commits mailing list