cd_python_module

This commit is contained in:
Marc Beninca 2024-06-01 20:03:08 +02:00
parent aa26bce5fa
commit 914ecb28cf
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

13
cd.sh
View file

@ -5,8 +5,9 @@ CD_DEFAULT_DNS="\
9.9.9.9 \
"
CD_PYTHON_MODULE="cd"
CD_PYTHON_MODULES="\
cd \
${CD_PYTHON_MODULE} \
rwx \
"
@ -35,8 +36,8 @@ cd_main () {
# TODO move to Python
cd_install_ssh
cd_clean_packages_cache
cd_install_python_modules ${CD_PYTHON_MODULES}
cd_execute_python_module ${CD_PYTHON_MODULES}
cd_install_python_modules
cd_execute_python_module "${@}"
}
# steps
@ -540,7 +541,7 @@ local url
cd_step "Install Python modules"
root="$(mktemp --directory)" || exit
echo "${root}"
for repository in "${@}" ; do
for repository in ${CD_PYTHON_MODULES} ; do
cd_split
url="${CD_PROJECTS_URL}/${repository}"
echo -n "\
@ -571,9 +572,9 @@ local self
echo -n "\
${self}
${1}
${CD_PYTHON_MODULE}
"
"${CD_PYTHON_ALIAS}" -m "${1}" "${CD_STEP}" "${self}"
"${CD_PYTHON_ALIAS}" -m "${CD_PYTHON_MODULE}" "${@}"
}
# functions