cd_ln_python
This commit is contained in:
parent
ff58a3b397
commit
5217951380
1 changed files with 5 additions and 4 deletions
9
cd.sh
9
cd.sh
|
@ -641,10 +641,11 @@ cd_install_package () {
|
||||||
}
|
}
|
||||||
|
|
||||||
cd_ln_python () {
|
cd_ln_python () {
|
||||||
local command="${1}"
|
cd_ln_python__command="${1}"
|
||||||
if [ "${command}" ] ; then
|
if [ "${cd_ln_python__command}" ] ; then
|
||||||
echo "→ ${CD_PYTHON_ALIAS} → ${command}"
|
echo "→ ${CD_PYTHON_ALIAS} → ${cd_ln_python__command}"
|
||||||
ln -f -s "${command}" "/usr/bin/${CD_PYTHON_ALIAS}" || exit
|
ln -f -s "${cd_ln_python__command}" "/usr/bin/${CD_PYTHON_ALIAS}" \
|
||||||
|
|| exit
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue