Skip to content

Commit

Permalink
Merge pull request #770 from tschettervictor/patch-7
Browse files Browse the repository at this point in the history
Allow using template in custom directory
  • Loading branch information
bmac2 authored Dec 28, 2024
2 parents 7d3ca7b + b736d77 commit 649c337
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions usr/local/share/bastille/template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 649c337

Please sign in to comment.