From d83231c2fcdb2c589f974088c44076e4a214d59b Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 8 Sep 2024 23:59:33 +0200 Subject: [PATCH] mv --- spcd/bootstrap.sh | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index cbc4f8a..44445fe 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -765,27 +765,6 @@ nameserver ${value} fi } -spcd_git_clone() { - if [ -n "${1}" ]; then - local name path url - name="$(basename "${1}")" - path="${SPCD_DL}/${name}" - url="$(spcd_git_url "${1}")" - git clone "${url}" "${path}" - echo "${path}" - fi -} - -spcd_git_url() { - if [ -n "${1}" ]; then - case "${1}" in - http*) echo "${1}" ;; - */*) echo "${SPCD_PROJECT_ROOT}/${1}" ;; - *) echo "${SPCD_PROJECT_ROOT}/${SPCD_PROJECT_PATH}/${1}" ;; - esac - fi -} - spcd_python_ln() { local command="${1}" if [ -n "${command}" ]; then @@ -893,6 +872,27 @@ spcd_f_env_workspace() { # │ f │ git │ # ╰───┴─────╯ +spcd_git_clone() { + if [ -n "${1}" ]; then + local name path url + name="$(basename "${1}")" + path="${SPCD_DL}/${name}" + url="$(spcd_git_url "${1}")" + git clone "${url}" "${path}" + echo "${path}" + fi +} + +spcd_git_url() { + if [ -n "${1}" ]; then + case "${1}" in + http*) echo "${1}" ;; + */*) echo "${SPCD_PROJECT_ROOT}/${1}" ;; + *) echo "${SPCD_PROJECT_ROOT}/${SPCD_PROJECT_PATH}/${1}" ;; + esac + fi +} + # ╭───┬──────────────────────╮ # │ f │ pm = package manager │ # ╰───┴──────────────────────╯