From 2c390530bead85c6c219a30bad78f216cd785a0f Mon Sep 17 00:00:00 2001 From: Andrea Mistrali Date: Tue, 23 Nov 2021 17:41:08 +0100 Subject: [PATCH] changes 4 --- zsh.d/zshfunctions/x509 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh.d/zshfunctions/x509 b/zsh.d/zshfunctions/x509 index 3fe7f8c..f900051 100644 --- a/zsh.d/zshfunctions/x509 +++ b/zsh.d/zshfunctions/x509 @@ -1,6 +1,7 @@ usage() { echo "x509 " echo "x509 -r " + return 0 } [ $# -eq 0 ] && usage @@ -18,6 +19,6 @@ while getopts ":hr:" arg; do ;; esac done -[ $help -eq 1 ] && usage && return 0 +[ $help -eq 1 ] && usage [ $remote -eq 0 ] && openssl x509 -in $* -noout -text [ $remote -eq 1 ] && openssl s_client -connect $host < /dev/null | openssl x509 -noout -text