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 }