From c062e717b7d145f2260eb7881a1baf939aae6a2c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 25 Aug 2024 23:07:15 +0200 Subject: [PATCH] mv --- spcd/main.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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