From 35d332a95601a566e309bbb2ef17c7dfd0fba159 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 25 Aug 2024 19:35:21 +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 394b14c..0ca5b2a 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -922,6 +922,14 @@ spcd_os_grep() { sed "s|^\"\(.*\)\"$|\1|" } +spcd_mkdir() { + spcd_mkdir__path="${1}" + if [ -n "${spcd_mkdir__path}" ]; then + echo "→ ${spcd_mkdir__path}" + mkdir --parents "${spcd_mkdir__path}" || exit + fi +} + # ╭───────────┬──────╮ # │ functions │ step │ # ╰───────────┴──────╯ @@ -996,14 +1004,6 @@ spcd_ls() { fi } -spcd_mkdir() { - spcd_mkdir__path="${1}" - if [ -n "${spcd_mkdir__path}" ]; then - echo "→ ${spcd_mkdir__path}" - mkdir --parents "${spcd_mkdir__path}" || exit - fi -} - spcd_open() { echo "${SPCD_OPEN}${*}" }