From 0aabefd385c2ee6dea040652e17c7babebe29ccf Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 26 Aug 2024 18:18:10 +0200 Subject: [PATCH] ln --- spcd/bootstrap.sh | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 509dd58..391d760 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -329,19 +329,6 @@ spcd_os_write() { fi } -# ╭───────────┬────────╮ -# │ 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}" - fi -} - # ╭───────────┬───────╮ # │ functions │ split │ # ╰───────────┴───────╯ @@ -810,6 +797,15 @@ spcd_install_package() { spcd_clean_cache } +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}" + fi +} + spcd_python_pip() { if [ -n "${1}" ]; then spcd_pp__name="$(basename "${1}")"