diff --git a/spcd/main.sh b/spcd/main.sh index 4ff3caa..69e876e 100644 --- a/spcd/main.sh +++ b/spcd/main.sh @@ -251,6 +251,19 @@ spcd_git_url() { fi } +# ╭───────────┬─────────╮ +# │ functions │ openssl │ +# ╰───────────┴─────────╯ + +spcd_openssl_x509() { + spcd_openssl_x509__file="${1}" + if [ -f "${spcd_openssl_x509__file}" ]; then + openssl x509 \ + -in "${spcd_openssl_x509__file}" \ + -noout -text + fi +} + # ╭───────────┬────╮ # │ functions │ os │ # ╰───────────┴────╯ @@ -1232,15 +1245,6 @@ spcd_install_package() { fi } -spcd_openssl_x509() { - spcd_openssl_x509__file="${1}" - if [ -f "${spcd_openssl_x509__file}" ]; then - openssl x509 \ - -in "${spcd_openssl_x509__file}" \ - -noout -text - fi -} - #╶──────────────────────────────────────╴ # ╭──────╮