From 5c279ca0c9a27c8cdaa60123397e65e73b565d2d Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Mon, 10 Aug 2015 14:43:38 +0300 Subject: [PATCH] Quote the argument of echo to make it work with bash --- _posts/2015-02-24-znc160-ssl.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_posts/2015-02-24-znc160-ssl.md b/_posts/2015-02-24-znc160-ssl.md index 28b2bd1..bbdbfe7 100644 --- a/_posts/2015-02-24-znc160-ssl.md +++ b/_posts/2015-02-24-znc160-ssl.md @@ -70,11 +70,11 @@ from multiple places: serversslcertfp () { SSSLCFFN=$(openssl s_client -showcerts -connect $1 < /dev/null) # To see all validity information - echo $SSSLCFFN + echo "$SSSLCFFN" # For getting the fingerprints - echo $SSSLCFFN | openssl x509 -md5 -fingerprint -noout - echo $SSSLCFFN | openssl x509 -sha1 -fingerprint -noout - echo $SSSLCFFN | openssl x509 -sha256 -fingerprint -noout + echo "$SSSLCFFN" | openssl x509 -md5 -fingerprint -noout + echo "$SSSLCFFN" | openssl x509 -sha1 -fingerprint -noout + echo "$SSSLCFFN" | openssl x509 -sha256 -fingerprint -noout unset SSSLCFFN } ```