From 2446f5c70e9e06c34fc61dbfe17ea29180e63afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Bertin?= Date: Sat, 11 Sep 2021 12:16:54 +0200 Subject: [PATCH] TEMPLATE.SH::ADDED:: ability to apply templates using a custom absolute directory path --- usr/local/share/bastille/template.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr/local/share/bastille/template.sh b/usr/local/share/bastille/template.sh index 07cfae12..67b3e263 100644 --- a/usr/local/share/bastille/template.sh +++ b/usr/local/share/bastille/template.sh @@ -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 ;; *)