From bd6cb1ce632be5f4fb6fe5ae005c2cfa9e2d31ed Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 28 Apr 2024 15:42:36 +0200 Subject: [PATCH] exit --- cd.sh | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/cd.sh b/cd.sh index 9af0f96..ce18d2c 100644 --- a/cd.sh +++ b/cd.sh @@ -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 }