From 9070ae93774539fcb8cbbefcb4d91aa1fc304f61 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 4 May 2024 00:24:14 +0200 Subject: [PATCH] cd_ln_python --- cd.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cd.sh b/cd.sh index 8424c29..c8b6d53 100644 --- a/cd.sh +++ b/cd.sh @@ -264,6 +264,8 @@ cd_install_git () { cd_install_python () { cd_step "Install Python" cd_install_package "${CD_PYTHON_PACKAGE}" + cd_split + cd_ln_python "${CD_PYTHON_COMMAND}" } cd_clean_packages_cache () { @@ -360,6 +362,13 @@ cd_install_package () { fi } +cd_ln_python () { + if [ "${1}" ] ; then + echo "python3 → ${1}" + ln --force --symbolic "${1}" "/usr/bin/python3" || exit + fi +} + cd_mkdir () { if [ "${1}" ] ; then echo "→ ${1}"