bootstrap: Bugfix when bootstrapping single template

This commit is contained in:
tschettervictor
2025-04-21 17:18:04 -06:00
committed by GitHub
parent 511c6dbd23
commit 4feef07ca7

View File

@@ -430,13 +430,15 @@ bootstrap_template() {
cp -fR "${_project}" "${bastille_templatesdir}/${_template}" cp -fR "${_project}" "${bastille_templatesdir}/${_template}"
bastille verify "${_complete_template}" bastille verify "${_complete_template}"
done done
else
bastille verify "${_user}/${_repo}"
fi
# Remove the cloned repo # Remove the cloned repo
if [ -n "${_user}" ]; then if [ -n "${_user}" ]; then
rm -r "${bastille_templatesdir}/${_user}" rm -r "${bastille_templatesdir}/${_user}"
fi
else
# Verify a single template
bastille verify "${_user}/${_repo}"
fi fi
} }