split
All checks were successful
/ job (push) Successful in 6m43s

This commit is contained in:
Marc Beninca 2024-06-04 21:13:08 +02:00
parent 74d4d86f17
commit 4be860e4cd
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 10 additions and 8 deletions

16
cd.sh
View file

@ -32,7 +32,8 @@ cd_main () {
cd_install_ssh
cd_clean_packages_cache
cd_install_python_modules
cd_execute_python_module "${@}"
cd_write_python_module
cd_switch_to_python "${@}"
}
# steps
@ -569,10 +570,8 @@ ${CD_PYTHON_PACKAGES}
cd_rm "${root}"
}
cd_execute_python_module () {
local path
cd_step "Execute Python module"
#
cd_write_python_module () {
cd_step "Write Python module"
cd_write "${CD_PYTHON_PACKAGES}/env.py" "\
$(cd_echo CD_OS_ID CD_OS_VERSION)
@ -583,8 +582,11 @@ $(cd_echo CD_HORIZONTAL)
$(cd_echo CD_DOWN CD_SPLIT CD_UP)
"
#
cd_split
}
cd_switch_to_python () {
local path
cd_step "Switch to Python"
#
path="$(realpath "${0}")"
echo -n "\

View file

@ -80,4 +80,4 @@ from various CA, CI, OCI / OS.
* integrate project repository cloning
* override repository and framework locations
* show previous states of directories & files
* split switch to Python step
* relay Python module name