From f0965a46f99a4a3bd62adead0d9ccd69aaf7b305 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 26 Aug 2024 18:13:39 +0200 Subject: [PATCH] mkdir/1 --- spcd/bootstrap.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 0fc5d24..ebc521e 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -284,10 +284,9 @@ spcd_os_ls() { } spcd_os_mkdir() { - spcd_os_mkdir__path="${1}" - if [ -n "${spcd_os_mkdir__path}" ]; then - echo "→ ${spcd_os_mkdir__path}" - mkdir --parents "${spcd_os_mkdir__path}" + if [ -n "${1}" ]; then + echo "→ ${1}" + mkdir --parents "${1}" fi }