diff --git a/usr/local/share/bastille/template.sh b/usr/local/share/bastille/template.sh index 53f50bc0b..7af0419f8 100644 --- a/usr/local/share/bastille/template.sh +++ b/usr/local/share/bastille/template.sh @@ -188,15 +188,17 @@ case ${TEMPLATE} in ;; */*) if [ ! -d "${bastille_templatesdir}/${TEMPLATE}" ]; then - if [ ! -d ${TEMPLATE} ]; then error_exit "${TEMPLATE} not found." - else + else bastille_template=${TEMPLATE} - fi fi ;; *) - error_exit "Template name/URL not recognized." + if [ ! -f ${TEMPLATE}/Bastillefile ]; then + error_exit "${TEMPLATE} not found." + else + bastille_template=${TEMPLATE} + fi esac if [ -z "${JAILS}" ]; then