diff --git a/cd.sh b/cd.sh index fe65ea1..8823326 100644 --- a/cd.sh +++ b/cd.sh @@ -544,35 +544,38 @@ cd_clean_packages_cache () { } cd_install_python_modules () { -local path -local repository -local root -local url cd_step "Install Python modules" - root="$(mktemp --directory)" || exit - echo "→ ${root}" - for repository in "${CD_GIT_CHILD}" "${CD_GIT_PARENT}" ; do + cd_install_python_modules__root="$(mktemp --directory)" || exit + echo "→ ${cd_install_python_modules__root}" + for cd_install_python_modules__repository \ + in "${CD_GIT_CHILD}" "${CD_GIT_PARENT}" ; do cd_split - url="${CD_PROJECTS_URL}/${repository}" + cd_install_python_modules__url="\ +${CD_PROJECTS_URL}/${cd_install_python_modules__repository}" echo "\ -${url} +${cd_install_python_modules__url} ↓" git clone \ - "${url}" "${root}/${repository}" \ + "${cd_install_python_modules__url}" \ + "${cd_install_python_modules__root}\ +/${cd_install_python_modules__repository}" \ || exit - path="${root}/${repository}/${repository}" + cd_install_python_modules__path="\ +${cd_install_python_modules__root}\ +/${cd_install_python_modules__repository}\ +/${cd_install_python_modules__repository}" echo "\ -${path} +${cd_install_python_modules__path} ↓ ${CD_PYTHON_PACKAGES}" cp --recursive \ - "${path}" "${CD_PYTHON_PACKAGES}" \ + "${cd_install_python_modules__path}" "${CD_PYTHON_PACKAGES}" \ || exit done cd_split cd_ls "${CD_PYTHON_PACKAGES}" cd_split - cd_rm "${root}" + cd_rm "${cd_install_python_modules__root}" } cd_write_python_module () {