[Debian-live-changes] r2593 - dists/trunk/live-helper/functions

daniel at alioth.debian.org daniel at alioth.debian.org
Fri Jul 27 07:49:27 UTC 2007


Author: daniel
Date: 2007-07-27 07:49:26 +0000 (Fri, 27 Jul 2007)
New Revision: 2593

Modified:
   dists/trunk/live-helper/functions/templates.sh
Log:


Modified: dists/trunk/live-helper/functions/templates.sh
===================================================================
--- dists/trunk/live-helper/functions/templates.sh	2007-07-27 07:48:22 UTC (rev 2592)
+++ dists/trunk/live-helper/functions/templates.sh	2007-07-27 07:49:26 UTC (rev 2593)
@@ -11,10 +11,10 @@
 
 Check_templates ()
 {
-	ITEM="${1}"
+	PACKAGE="${1}"
 
 	# Check user defined templates directory
-	if [ ! -d "${LIVE_TEMPLATES}" ]
+	if [ ! -e "${LIVE_TEMPLATES}" ]
 	then
 		if [ -d config/templates ]
 		then
@@ -25,11 +25,11 @@
 		fi
 	fi
 
-	if [ -d "${LIVE_TEMPLATES}/${ITEM}" ]
+	if [ -d "${LIVE_TEMPLATES}/${PACKAGE}" ]
 	then
-		TEMPLATES="${LIVE_TEMPLATES}/${ITEM}"
+		TEMPLATES="${LIVE_TEMPLATES}/${PACKAGE}"
 	else
-		Echo_error "${ITEM} templates not accessible in ${LIVE_TEMPLATES}"
+		Echo_error "${PACKAGE} templates not accessible in ${LIVE_TEMPLATES}"
 		exit 1
 	fi
 }




More information about the Debian-live-changes mailing list