From 914ecb28cf5c8b4e730b6bba2660ccaf193ad0e9 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 1 Jun 2024 20:03:08 +0200 Subject: [PATCH] cd_python_module --- cd.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/cd.sh b/cd.sh index 455a94b..84e7dbc 100644 --- a/cd.sh +++ b/cd.sh @@ -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