From 774b7f84e516009abdc3b4856b89d2a1f2fa147c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 25 Aug 2024 19:37:39 +0200 Subject: [PATCH] spcd_os_mkdir --- spcd/main.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spcd/main.sh b/spcd/main.sh index 0ca5b2a..91d6e82 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -643,7 +643,7 @@ spcd_set_packages_configuration() { spcd_set_https_verification_off() { if [ -n "${SPCD_CA}" ] || [ "${SPCD_PM}" = "${SPCD_PM_APT}" ]; then spcd_step "Set HTTPS verification off" - spcd_mkdir "$(dirname "${SPCD_PM_HTTPS_PATH}")" + spcd_os_mkdir "$(dirname "${SPCD_PM_HTTPS_PATH}")" spcd_write "${SPCD_PM_HTTPS_PATH}" "${SPCD_PM_HTTPS_TEXT}" fi } @@ -682,7 +682,7 @@ spcd_install_ca_certificates() { spcd_write_ca_certificates() { spcd_step "Write CA certificates" - spcd_mkdir "${SPCD_CA_ROOT}" + spcd_os_mkdir "${SPCD_CA_ROOT}" while true; do spcd_wcc__index=$((spcd_wcc__index + 1)) eval "spcd_wcc__text=\"\${SPCD_CA_${spcd_wcc__index}}\"" @@ -922,11 +922,11 @@ 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 +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}" fi }