cd_openssl test

This commit is contained in:
Marc Beninca 2024-05-23 15:58:11 +02:00
parent 9838ed3a6c
commit 86902bea36
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

2
cd.sh
View file

@ -606,7 +606,7 @@ cd_mkdir () {
cd_openssl () {
local file="${1}"
if [ "${file}" ] ; then
if [ -f "${file}" ] ; then
openssl x509 -noout -text -in "${file}" || exit
fi
}