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

daniel at alioth.debian.org daniel at alioth.debian.org
Wed Jun 27 19:35:49 UTC 2007


Author: daniel
Date: 2007-06-27 19:35:49 +0000 (Wed, 27 Jun 2007)
New Revision: 2259

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-06-27 19:24:36 UTC (rev 2258)
+++ dists/trunk/live-helper/functions/templates.sh	2007-06-27 19:35:49 UTC (rev 2259)
@@ -11,11 +11,10 @@
 
 Check_templates ()
 {
-	DIR="${1}"
-	LOCAL="{2}"
+	PROGRAM="${1}"
 
 	# Check local templates
-	if [ -d config/templates/"${LOCAL}" ]
+	if [ -d config/templates/"${PROGRAM}" ]
 	then
 		LIVE_TEMPLATES="config/templates"
 	fi
@@ -25,9 +24,9 @@
 	then
 		Echo_error "user specified templates not accessible in ${LIVE_TEMPLATES}"
 		exit 1
-	elif [ ! -d "${LIVE_TEMPLATES}/${LOCAL}" ]
+	elif [ ! -d "${LIVE_TEMPLATES}/${PROGRAM}" ]
 	then
-		Echo_error "${LOCAL} templates not accessible in ${LIVE_TEMPLATES}"
+		Echo_error "${PROGRAM} templates not accessible in ${LIVE_TEMPLATES}"
 		exit 1
 	fi
 }


Property changes on: dists/trunk/live-helper/functions/templates.sh
___________________________________________________________________
Name: svn:executable
   + *




More information about the Debian-live-changes mailing list