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,14 +430,16 @@ bootstrap_template() {
cp -fR "${_project}" "${bastille_templatesdir}/${_template}"
bastille verify "${_complete_template}"
done
# Remove the cloned repo
if [ -n "${_user}" ]; then
rm -r "${bastille_templatesdir}/${_user}"
fi
else
# Verify a single template
bastille verify "${_user}/${_repo}"
fi
# Remove the cloned repo
if [ -n "${_user}" ]; then
rm -r "${bastille_templatesdir}/${_user}"
fi
}
# Handle options.