This commit is contained in:
Marc Beninca 2024-08-25 19:35:21 +02:00
parent fce1d0b1a7
commit 35d332a956
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -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}${*}"
}