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