diff --git a/zsh.d/zshfunctions/x509 b/zsh.d/zshfunctions/x509 index 8a5dd8c..0564ee6 100644 --- a/zsh.d/zshfunctions/x509 +++ b/zsh.d/zshfunctions/x509 @@ -16,7 +16,7 @@ while getopts ":hr:" arg; do r) remote=1 host=$OPTARG - hostname=echo $host|cut -d: -f1 + hostname=$(echo $host|cut -d: -f1) ;; h|*) help=1 ;; diff --git a/zsh.d/zshfunctions/x509.zwc b/zsh.d/zshfunctions/x509.zwc index 64b307e..138d48c 100644 Binary files a/zsh.d/zshfunctions/x509.zwc and b/zsh.d/zshfunctions/x509.zwc differ diff --git a/zsh.d/zshfunctions/x509remote b/zsh.d/zshfunctions/x509remote deleted file mode 100644 index cf983f7..0000000 --- a/zsh.d/zshfunctions/x509remote +++ /dev/null @@ -1,6 +0,0 @@ -if [ ! -z "$1" ]; then - openssl s_client -connect $1 < /dev/null | \ - openssl x509 -noout -text -else - echo "x509remote " -fi diff --git a/zsh.d/zshfunctions/x509remote.zwc b/zsh.d/zshfunctions/x509remote.zwc deleted file mode 100644 index 3117820..0000000 Binary files a/zsh.d/zshfunctions/x509remote.zwc and /dev/null differ