From b1579d654f91b105f02d85c84566ca7b7f2b774d Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 24 Jun 2024 08:30:54 +0200 Subject: [PATCH] wcc --- pidd.sh | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/pidd.sh b/pidd.sh index 8c496be..86e09c6 100644 --- a/pidd.sh +++ b/pidd.sh @@ -546,20 +546,17 @@ pidd_install_ca_certificates () { pidd_write_ca_certificates () { pidd_step "Write CA certificates" pidd_mkdir "${PIDD_CA_ROOT}" - pidd_write_ca_certificates__index=1 - eval "pidd_write_ca_certificates__text=\ -\"\${PIDD_CA_${pidd_write_ca_certificates__index}}\"" - while [ -n "${pidd_write_ca_certificates__text}" ] ; do - pidd_write_ca_certificates__path="\ -${PIDD_CA_ROOT}/${pidd_write_ca_certificates__index}.crt" + pidd_wcc__index=1 + eval "pidd_wcc__text=\"\${PIDD_CA_${pidd_wcc__index}}\"" + while [ -n "${pidd_wcc__text}" ] ; do + pidd_wcc__path="${PIDD_CA_ROOT}/${pidd_wcc__index}.crt" pidd_split pidd_write \ - "${pidd_write_ca_certificates__path}" \ - "${pidd_write_ca_certificates__text}" - pidd_openssl "${pidd_write_ca_certificates__path}" - pidd_write_ca_certificates__index=$((pidd_write_ca_certificates__index+1)) - eval "pidd_write_ca_certificates__text=\ -\"\${PIDD_CA_${pidd_write_ca_certificates__index}}\"" + "${pidd_wcc__path}" \ + "${pidd_wcc__text}" + pidd_openssl "${pidd_wcc__path}" + pidd_wcc__index=$((pidd_wcc__index+1)) + eval "pidd_wcc__text=\"\${PIDD_CA_${pidd_wcc__index}}\"" done }