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

This commit is contained in:
Théo Bertin
2021-09-11 12:16:54 +02:00
parent 27ea04712f
commit 2446f5c70e

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
;;
*)