From 86902bea36972e5068adc4a52410394e3fde3f9c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Thu, 23 May 2024 15:58:11 +0200 Subject: [PATCH] cd_openssl test --- cd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cd.sh b/cd.sh index e2b9b3b..2a5fe85 100644 --- a/cd.sh +++ b/cd.sh @@ -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 }