Skip to content

Commit 52374e5

Browse files
committed
handle spell errors
1 parent 44a60ff commit 52374e5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

testssl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17166,11 +17166,11 @@ find_openssl_binary() {
1716617166

1716717167
# Determine an OpenSSL short string for the banner
1716817168
# E.g MacOS' homebrew and Debian add a library string: OpenSSL 3.3.1 4 Jun 2024 (Library: OpenSSL 3.3.1 4 Jun 2024),
17169-
# so we omit the part after the round bracket as it breaks formatting and doesnt provide more useful info
17169+
# so we omit the part after the round bracket as it breaks formatting and doesn't provide more useful info
1717017170
OSSL_SHORT_STR=$($OPENSSL version 2>/dev/null)
1717117171
OSSL_SHORT_STR=${OSSL_SHORT_STR%\(*}
1717217172
# Now handle strings like this: OpenSSL 1.1.1l-fips 24 Aug 2021 SUSE release 150500.17.34.1
17173-
# we find the year, remove until first occurence, readd it
17173+
# we find the year, remove until first occurrence, re-add it
1717417174
for yr in {2014..2029} ; do
1717517175
if [[ $OSSL_SHORT_STR =~ \ $yr ]] ; then
1717617176
OSSL_SHORT_STR=${OSSL_SHORT_STR%%$yr*}

0 commit comments

Comments
 (0)