From 5b3122aaf2cef0bf4095d1ad8b2acd9324703f06 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 2 Jun 2024 15:50:44 +0200 Subject: [PATCH] cd_git_parent --- cd.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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 "\