From 1803c471647582743a7c7a99c34d5bc9c7bb9595 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 23 Sep 2007 10:05:16 +0200 Subject: Adding live-helper 1.0~a20-1. --- functions/templates.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'functions/templates.sh') diff --git a/functions/templates.sh b/functions/templates.sh index 6b60c9e9a..54f81c1e7 100755 --- a/functions/templates.sh +++ b/functions/templates.sh @@ -11,10 +11,10 @@ set -e 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 @@ Check_templates () 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 } -- cgit v1.2.3