diff --git a/cd.sh b/cd.sh index d1c14ad..804d963 100644 --- a/cd.sh +++ b/cd.sh @@ -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 }