spcd_python_ln

This commit is contained in:
Marc Beninca 2024-08-25 23:06:37 +02:00
parent 218c31ce57
commit a4556cd22b
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1044,7 +1044,7 @@ spcd_install_python() {
spcd_step_in "Install Python"
spcd_install_package "${SPCD_PYTHON_PACKAGE}"
spcd_step "Link alias to command"
spcd_ln_python "${SPCD_PYTHON_COMMAND}"
spcd_python_ln "${SPCD_PYTHON_COMMAND}"
# venv
spcd_step_in "Virtual environment"
spcd_step "Install package"
@ -1199,11 +1199,11 @@ spcd_install_package() {
fi
}
spcd_ln_python() {
spcd_ln_python__command="${1}"
if [ -n "${spcd_ln_python__command}" ]; then
echo "${SPCD_PYTHON_ALIAS}${spcd_ln_python__command}"
ln -f -s "${spcd_ln_python__command}" \
spcd_python_ln() {
spcd_python_ln__command="${1}"
if [ -n "${spcd_python_ln__command}" ]; then
echo "${SPCD_PYTHON_ALIAS}${spcd_python_ln__command}"
ln -f -s "${spcd_python_ln__command}" \
"/usr/bin/${SPCD_PYTHON_ALIAS}" || exit
fi
}