Merge pull request #770 from tschettervictor/patch-7

Allow using template in custom directory
This commit is contained in:
Barry McCormick
2024-12-27 21:10:20 -08:00
committed by GitHub

View File

@@ -188,15 +188,17 @@ case ${TEMPLATE} in
;;
*/*)
if [ ! -d "${bastille_templatesdir}/${TEMPLATE}" ]; then
if [ ! -d ${TEMPLATE} ]; then
error_exit "${TEMPLATE} not found."
else
else
bastille_template=${TEMPLATE}
fi
fi
;;
*)
error_exit "Template name/URL not recognized."
if [ ! -f ${TEMPLATE}/Bastillefile ]; then
error_exit "${TEMPLATE} not found."
else
bastille_template=${TEMPLATE}
fi
esac
if [ -z "${JAILS}" ]; then