This commit is contained in:
Marc Beninca 2024-06-08 16:21:46 +02:00
parent 17d22283f8
commit 2a19db986c
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

9
cd.sh
View file

@ -40,6 +40,9 @@ cd_main () {
cd_set_environment_variables () {
cd_step "Set environment variables"
# set path
CD_PATH="$(realpath "${0}")"
cd_echo "CD_PATH"
# set operating system id
CD_OS_ID="$(cd_grep_os ID)"
case "${CD_OS_ID}" in
@ -105,6 +108,7 @@ cd_set_environment_variables () {
esac
;;
esac
cd_split
cd_echo "CD_OS_ID" "CD_OS_VERSION"
# universal
CD_DNS_FILE="/etc/resolv.conf"
@ -583,12 +587,9 @@ CD_STEP = $((CD_STEP+1))
}
cd_switch_to_python () {
local path
cd_step "Switch to Python"
#
path="$(realpath "${0}")"
echo "\
${path}
${CD_PATH}
${CD_PYTHON_PACKAGES}/${CD_GIT_CHILD}"
"${CD_PYTHON_ALIAS}" -m "${CD_GIT_CHILD}" "${@}"