TEMPLATE.SH::ADDED:: ability to apply templates using a custom absolute directory path

This commit is contained in:
Théo Bertin committed 2021-09-11 12:16:54 +02:00
1 parent 27ea04712f
commit 2446f5c70e
1 file changed
+4
+4
View File
@@ -186,7 +186,11 @@ case ${TEMPLATE} in
;; ;;
*/*) */*)
if [ ! -d "${bastille_templatesdir}/${TEMPLATE}" ]; then if [ ! -d "${bastille_templatesdir}/${TEMPLATE}" ]; then
if [ ! -d ${TEMPLATE} ]; then
error_exit "${TEMPLATE} not found." error_exit "${TEMPLATE} not found."
else
bastille_template=${TEMPLATE}
fi
fi fi
;; ;;
*) *)