cd_ln_python

This commit is contained in:
Marc Beninca 2024-06-08 12:45:43 +02:00
parent ff58a3b397
commit 5217951380
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

9
cd.sh
View file

@ -641,10 +641,11 @@ cd_install_package () {
}
cd_ln_python () {
local command="${1}"
if [ "${command}" ] ; then
echo "${CD_PYTHON_ALIAS}${command}"
ln -f -s "${command}" "/usr/bin/${CD_PYTHON_ALIAS}" || exit
cd_ln_python__command="${1}"
if [ "${cd_ln_python__command}" ] ; then
echo "${CD_PYTHON_ALIAS}${cd_ln_python__command}"
ln -f -s "${cd_ln_python__command}" "/usr/bin/${CD_PYTHON_ALIAS}" \
|| exit
fi
}