From 99af49e1a846313146e3687f7428a1ad3fee2274 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 8 Jun 2024 12:18:39 +0200 Subject: [PATCH] cd_openssl --- cd.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cd.sh b/cd.sh index 9ae374a..ecb9f92 100644 --- a/cd.sh +++ b/cd.sh @@ -668,9 +668,12 @@ cd_open () { } cd_openssl () { -local file="${1}" - if [ -f "${file}" ] ; then - openssl x509 -noout -text -in "${file}" || exit + cd_openssl__file="${1}" + if [ -f "${cd_openssl__file}" ] ; then + openssl x509 \ + -in "${cd_openssl__file}" \ + -noout -text \ + || exit fi }