spcd_git_url

This commit is contained in:
Marc Beninca 2024-08-23 17:00:06 +02:00
parent 33dfc13672
commit 9c2c834603
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -715,7 +715,7 @@ spcd_install_python_modules() {
spcd_step "Install Python modules"
spcd_ipm__target="${SPCD_PYTHON_VENV_PACKAGES}"
for spcd_ipm__repository in "${SPCD_GIT_MAIN}" "${SPCD_GIT_ROOT}"; do
spcd_ipm__url="$(spcd_get_git_url "${spcd_ipm__repository}")"
spcd_ipm__url="$(spcd_git_url "${spcd_ipm__repository}")"
spcd_ipm__name="$(basename "${spcd_ipm__url}")"
spcd_split
echo "\
@ -880,7 +880,7 @@ spcd_error_os() {
exit "${SPCD_ERROR_OS}"
}
spcd_get_git_url() {
spcd_git_url() {
if [ -n "${1}" ]; then
case "${1}" in
http*) echo "${1}" ;;