diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 715aa67..dbe1e6c 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -765,27 +765,6 @@ nameserver ${value} fi } -spcd_python_ln() { - local command="${1}" - if [ -n "${command}" ]; then - echo "→ ${SPCD_PYTHON_ALIAS} → ${command}" - ln -f -s "${command}" \ - "/usr/bin/${SPCD_PYTHON_ALIAS}" - fi -} - -spcd_python_pip() { - if [ -n "${1}" ]; then - local name path target - name="$(basename "${1}")" - path="$(spcd_f_git_clone "${1}")" - path="${path}/${name}" - target="${SPCD_PYTHON_VENV_PACKAGES}" - cp --recursive "${path}" "${target}" - echo "${target}/${name}" - fi -} - # ╭───┬──────────────────────────────╮ # │ f │ ca = certificate authorities │ # ╰───┴──────────────────────────────╯ @@ -1028,6 +1007,27 @@ spcd_f_pm_pkg_upgrade() { # │ f │ py = python │ # ╰───┴─────────────╯ +spcd_python_ln() { + local command="${1}" + if [ -n "${command}" ]; then + echo "→ ${SPCD_PYTHON_ALIAS} → ${command}" + ln -f -s "${command}" \ + "/usr/bin/${SPCD_PYTHON_ALIAS}" + fi +} + +spcd_python_pip() { + if [ -n "${1}" ]; then + local name path target + name="$(basename "${1}")" + path="$(spcd_f_git_clone "${1}")" + path="${path}/${name}" + target="${SPCD_PYTHON_VENV_PACKAGES}" + cp --recursive "${path}" "${target}" + echo "${target}/${name}" + fi +} + # ╭───┬─────╮ # │ f │ txt │ # ╰───┴─────╯