From 218c31ce574dec18a66ae72a54724bc7e8a7e377 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 25 Aug 2024 23:04:23 +0200 Subject: [PATCH] mv --- spcd/main.sh | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/spcd/main.sh b/spcd/main.sh index f536e60..d3ae924 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -298,6 +298,21 @@ spcd_os_rm() { fi } +# ╭───────────┬────────╮ +# │ functions │ python │ +# ╰───────────┴────────╯ + +spcd_python_pip() { + if [ -n "${1}" ]; then + spcd_pp__name="$(basename "${1}")" + spcd_pp__path="$(spcd_git_clone "${1}")" + spcd_pp__path="${spcd_pp__path}/${spcd_pp__name}" + spcd_pp__target="${SPCD_PYTHON_VENV_PACKAGES}" + cp --recursive "${spcd_pp__path}" "${spcd_pp__target}" + echo "${spcd_pp__target}/${spcd_pp__name}" + fi +} + # ╭───────────┬───────╮ # │ functions │ split │ # ╰───────────┴───────╯ @@ -1203,17 +1218,6 @@ spcd_openssl() { fi } -spcd_python_pip() { - if [ -n "${1}" ]; then - spcd_pp__name="$(basename "${1}")" - spcd_pp__path="$(spcd_git_clone "${1}")" - spcd_pp__path="${spcd_pp__path}/${spcd_pp__name}" - spcd_pp__target="${SPCD_PYTHON_VENV_PACKAGES}" - cp --recursive "${spcd_pp__path}" "${spcd_pp__target}" - echo "${spcd_pp__target}/${spcd_pp__name}" - fi -} - spcd_sed() { spcd_sed__file="${1}" shift