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