alternative git template servers

This commit is contained in:
Bike Dude
2021-05-18 21:14:03 +02:00
parent d6d9d14820
commit 585fd76ae2
2 changed files with 2 additions and 2 deletions

View File

@@ -426,7 +426,7 @@ current-build-latest|current-BUILD-LATEST|CURRENT-BUILD-LATEST)
PLATFORM_OS="HardenedBSD"
validate_release_url
;;
http?://github.com/*/*|http?://gitlab.com/*/*)
http?://*/*/*)
BASTILLE_TEMPLATE_URL=${1}
BASTILLE_TEMPLATE_USER=$(echo "${1}" | awk -F / '{ print $4 }')
BASTILLE_TEMPLATE_REPO=$(echo "${1}" | awk -F / '{ print $5 }')

View File

@@ -173,7 +173,7 @@ if [ "${TARGET}" = '--convert' ]; then
fi
case ${TEMPLATE} in
http?://github.com/*/*|http?://gitlab.com/*/*)
http?://*/*/*)
TEMPLATE_DIR=$(echo "${TEMPLATE}" | awk -F / '{ print $4 "/" $5 }')
if [ ! -d "${bastille_templatesdir}/${TEMPLATE_DIR}" ]; then
info "Bootstrapping ${TEMPLATE}..."