From 530681b688f8112b143fa7eba7dcd428117b6e87 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 25 Aug 2024 23:37:06 +0200 Subject: [PATCH] mv --- spcd/main.sh | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) 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 -} - #╶──────────────────────────────────────╴ # ╭──────╮