cd_ln_python

This commit is contained in:
Marc Beninca 2024-05-04 00:24:14 +02:00
parent cf446063a9
commit 9070ae9377
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

9
cd.sh
View file

@ -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}"