From 115a35d1aec002549a53260ceb45d4413118cda1 Mon Sep 17 00:00:00 2001 From: Andrea Mistrali Date: Tue, 23 Nov 2021 15:48:26 +0100 Subject: [PATCH] Fix errors in x509remote --- zsh.d/zshfunctions/x509remote | 4 ++-- zsh.d/zshfunctions/x509remote.zwc | Bin 704 -> 672 bytes 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh.d/zshfunctions/x509remote b/zsh.d/zshfunctions/x509remote index 892706b..cf983f7 100644 --- a/zsh.d/zshfunctions/x509remote +++ b/zsh.d/zshfunctions/x509remote @@ -1,6 +1,6 @@ -if [ -r "$1" ]; then +if [ ! -z "$1" ]; then openssl s_client -connect $1 < /dev/null | \ - openssl x509 -noout -text | less + openssl x509 -noout -text else echo "x509remote " fi diff --git a/zsh.d/zshfunctions/x509remote.zwc b/zsh.d/zshfunctions/x509remote.zwc index 65d120f5496748c9d0e009ebadcb5e2ad1d47d15..3117820154f89ad7f6108d080fd256c64c51f769 100644 GIT binary patch delta 249 zcmYj~I|{;J5QJy{M}iRr!B|KTwG-dz$B%2R6lb-M8Nf8 zp$nq=lSz3$FqWieV!p-xu0P`ET2kuN^>#i8%^$WK@WlPdl2dzrP*wqNFi<-wcLgM0 m4+?jgc1Ez5Yf-LR%1kN`8j_W+Y026&11Ow`U&{h+HTwn&rz=PR delta 315 zcmYk0&q@MO6vn@E|IFZssL0eHL6YI75?lyvM5aY+A0fdOLL2cBf;P73a(#e#03V`P zXzkK%LcKxX+==MGg>$~|eCPfO`)=!TWDOn!