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 }