From 33839764376cb1b48996cfb863ac18dbedfd9d89 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 25 Aug 2024 19:57:50 +0200 Subject: [PATCH] mv --- spcd/main.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/spcd/main.sh b/spcd/main.sh index 91d6e82..8ec3d47 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -930,6 +930,14 @@ spcd_os_mkdir() { fi } +spcd_rm() { + spcd_rm__path="${1}" + if [ -e "${spcd_rm__path}" ]; then + echo "← ${spcd_rm__path}" + rm -r "${spcd_rm__path}" || exit + fi +} + # ╭───────────┬──────╮ # │ functions │ step │ # ╰───────────┴──────╯ @@ -1029,14 +1037,6 @@ spcd_pip_install() { fi } -spcd_rm() { - spcd_rm__path="${1}" - if [ -e "${spcd_rm__path}" ]; then - echo "← ${spcd_rm__path}" - rm -r "${spcd_rm__path}" || exit - fi -} - spcd_sed() { spcd_sed__file="${1}" shift