diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:05:16 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:22:26 +0100 |
commit | f314791fa2fa3e6a557ca50ecb4a0cf7798fee79 (patch) | |
tree | 1289402c2df38afa3f1f70c7e40fe4f35835d670 /functions/templates.sh | |
parent | c79ab34a7c597c9e3ab202c644121c6944789424 (diff) | |
download | vyos-live-build-f314791fa2fa3e6a557ca50ecb4a0cf7798fee79.tar.gz vyos-live-build-f314791fa2fa3e6a557ca50ecb4a0cf7798fee79.zip |
Adding live-helper 1.0~a20-1.
Diffstat (limited to 'functions/templates.sh')
-rwxr-xr-x | functions/templates.sh | 10 |
1 files changed, 5 insertions, 5 deletions
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 } |