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
2021-12-09 10:54:23 -07:00
committed by GitHub

View File

@@ -186,7 +186,11 @@ case ${TEMPLATE} in
;;
*/*)
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
;;
*)