diff --git a/cd.sh b/cd.sh index 75c9379..a8a9701 100644 --- a/cd.sh +++ b/cd.sh @@ -5,11 +5,8 @@ CD_DEFAULT_DNS="\ 9.9.9.9 \ " -CD_GIT_CHILD="cd" -CD_PYTHON_MODULES="\ -${CD_GIT_CHILD} \ -rwx \ -" +[ "${CD_GIT_CHILD}" ] || CD_GIT_CHILD="cd" +[ "${CD_GIT_PARENT}" ] || CD_GIT_PARENT="rwx" # main cd_main () { @@ -540,7 +537,7 @@ local url cd_step "Install Python modules" root="$(mktemp --directory)" || exit echo "${root}" - for repository in ${CD_PYTHON_MODULES} ; do + for repository in "${CD_GIT_CHILD}" "${CD_GIT_PARENT}" ; do cd_split url="${CD_PROJECTS_URL}/${repository}" echo -n "\