Merge pull request #308 from skunkwerks/master

fix certificate_info() test
This commit is contained in:
Dirk Wetter 2016-03-04 00:33:25 +01:00
commit 118f897d6d

View File

@ -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"