lasteps
Some checks failed
/ job (push) Failing after 6s

This commit is contained in:
Marc Beninca 2024-04-28 01:20:53 +02:00
parent 8a0922e7ce
commit 31daabef65
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

12
cd.sh
View file

@ -20,8 +20,8 @@ cd_main () {
cd_install_git cd_install_git
cd_install_python cd_install_python
cd_clean_packages_cache cd_clean_packages_cache
cd_install "${@}" cd_clone_parent_repositories "${@}"
cd_bootstrap "${@}" cd_set_python_commands "${@}"
} }
# #
@ -223,10 +223,10 @@ cd_clean_packages_cache () {
esac esac
} }
cd_install () { cd_clone_parent_repositories () {
local repository local repository
local root local root
cd_step "Install" cd_step "Clone parent repositories"
root="$(mktemp --directory)" || exit root="$(mktemp --directory)" || exit
for repository in "${@}" ; do for repository in "${@}" ; do
git clone \ git clone \
@ -239,8 +239,8 @@ local root
rm --force --recursive "${root}" || exit rm --force --recursive "${root}" || exit
} }
cd_bootstrap () { cd_set_python_commands () {
cd_step "Bootstrap" cd_step "Set Python commands"
"${CD_PYTHON_COMMAND}" -m "${1}" "${CD_PYTHON_COMMAND}" -m "${1}"
} }