Merge pull request #445 from frikilax/custom_template_path

TEMPLATE.SH::ADDED:: ability to apply templates using a custom directory path
This commit is contained in:
Christer Edwards authored and GitHub committed 2021-12-09 10:54:23 -07:00
commit 947ed27f90
1 file changed
+5 -1
+5 -1
View File
@@ -186,7 +186,11 @@ case ${TEMPLATE} in
;; ;;
*/*) */*)
if [ ! -d "${bastille_templatesdir}/${TEMPLATE}" ]; then if [ ! -d "${bastille_templatesdir}/${TEMPLATE}" ]; then
error_exit "${TEMPLATE} not found." if [ ! -d ${TEMPLATE} ]; then
error_exit "${TEMPLATE} not found."
else
bastille_template=${TEMPLATE}
fi
fi fi
;; ;;
*) *)