From 383f968685c92faec8c14bbf755e97fa54ac6ba0 Mon Sep 17 00:00:00 2001 From: Juan David Hurtado G Date: Sun, 29 Dec 2024 10:29:03 -0500 Subject: [PATCH] Revert "Merge pull request #770 from tschettervictor/patch-7" This reverts commit 649c337055047b41d4e063febcf16a12b1f30a48, reversing changes made to 7d3ca7b21b30150f9b89fb6d5cf42c4abcdd348a. --- usr/local/share/bastille/template.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/usr/local/share/bastille/template.sh b/usr/local/share/bastille/template.sh index 7af0419f..53f50bc0 100644 --- a/usr/local/share/bastille/template.sh +++ b/usr/local/share/bastille/template.sh @@ -188,17 +188,15 @@ 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 ;; *) - if [ ! -f ${TEMPLATE}/Bastillefile ]; then - error_exit "${TEMPLATE} not found." - else - bastille_template=${TEMPLATE} - fi + error_exit "Template name/URL not recognized." esac if [ -z "${JAILS}" ]; then