cd_ln_python
This commit is contained in:
parent
cf446063a9
commit
9070ae9377
1 changed files with 9 additions and 0 deletions
9
cd.sh
9
cd.sh
|
@ -264,6 +264,8 @@ cd_install_git () {
|
||||||
cd_install_python () {
|
cd_install_python () {
|
||||||
cd_step "Install Python"
|
cd_step "Install Python"
|
||||||
cd_install_package "${CD_PYTHON_PACKAGE}"
|
cd_install_package "${CD_PYTHON_PACKAGE}"
|
||||||
|
cd_split
|
||||||
|
cd_ln_python "${CD_PYTHON_COMMAND}"
|
||||||
}
|
}
|
||||||
|
|
||||||
cd_clean_packages_cache () {
|
cd_clean_packages_cache () {
|
||||||
|
@ -360,6 +362,13 @@ cd_install_package () {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cd_ln_python () {
|
||||||
|
if [ "${1}" ] ; then
|
||||||
|
echo "python3 → ${1}"
|
||||||
|
ln --force --symbolic "${1}" "/usr/bin/python3" || exit
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
cd_mkdir () {
|
cd_mkdir () {
|
||||||
if [ "${1}" ] ; then
|
if [ "${1}" ] ; then
|
||||||
echo "→ ${1}"
|
echo "→ ${1}"
|
||||||
|
|
Loading…
Reference in a new issue