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 }