exit
Some checks failed
/ job (push) Failing after 4s

This commit is contained in:
Marc Beninca 2024-04-28 15:42:36 +02:00
parent 7cfd0247f0
commit bd6cb1ce63
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

17
cd.sh
View file

@ -21,7 +21,7 @@ cd_main () {
cd_install_python
cd_clean_packages_cache
cd_clone_parent_repositories "${@}"
cd_set_python_commands "${@}"
cd_execute_python_module "${@}"
}
#
@ -261,16 +261,23 @@ local root
rm --force --recursive "${root}" || exit
}
cd_set_python_commands () {
cd_execute_python_module () {
local self
cd_step "Set Python commands"
"${CD_PYTHON_COMMAND}" -m "${1}"
self="$(realpath "${0}")"
echo -n "\
${self}
${1}
"
"${CD_PYTHON_COMMAND}" -m "${1}" "${self}"
}
#
cd_cat () {
if [ -f "${1}" ] ; then
echo "$(realpath "${1}")"
echo "$(realpath "${1}")"
cat "${1}" || exit
fi
}
@ -286,7 +293,7 @@ cd_install_package () {
cd_rm () {
if [ -f "${1}" ] ; then
echo "×$(realpath "${1}")"
echo "× $(realpath "${1}")"
rm "${1}" || exit
fi
}