diff --git a/spcd/main.sh b/spcd/main.sh index 3063265..eb380d7 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -302,6 +302,15 @@ spcd_os_rm() { # │ functions │ python │ # ╰───────────┴────────╯ +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 +} + spcd_python_pip() { if [ -n "${1}" ]; then spcd_pp__name="$(basename "${1}")" @@ -1199,15 +1208,6 @@ spcd_install_package() { fi } -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 -} - spcd_openssl() { spcd_openssl__file="${1}" if [ -f "${spcd_openssl__file}" ]; then