From 5217951380e41b39422cf545e68445e064d05b0d Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 8 Jun 2024 12:45:43 +0200 Subject: [PATCH] cd_ln_python --- cd.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 }