From 9e77f383180fbcf0b043978fc92ae4dbe242a697 Mon Sep 17 00:00:00 2001 From: Dave Cottlehuber Date: Thu, 3 Mar 2016 21:47:36 +0100 Subject: [PATCH] fix certificate_info() test --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 09b38b1..f5df68a 100755 --- a/testssl.sh +++ b/testssl.sh @@ -3024,7 +3024,7 @@ certificate_info() { outln "$cert_fingerprint_sha1 / $cert_fingerprint_serial" outln "$spaces$cert_fingerprint_sha2" fileout "${json_prefix}fingerprint" "INFO" "Fingerprints / Serial: $cert_fingerprint_sha1 / $cert_fingerprint_serial, $cert_fingerprint_sha2" - ][ -z $CERT_FINGERPRINT_SHA2 ]] && \ + [[ -z $CERT_FINGERPRINT_SHA2 ]] && \ CERT_FINGERPRINT_SHA2="$cert_fingerprint_sha2" || CERT_FINGERPRINT_SHA2="$cert_fingerprint_sha2 $CERT_FINGERPRINT_SHA2"