Merge pull request #1020 from dcooper16/ossl_ver_appendix

Fix OSSL_VER_APPENDIX
This commit is contained in:
Dirk Wetter 2018-03-19 16:52:20 +01:00 committed by GitHub
commit 27b217b301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14521,7 +14521,7 @@ find_openssl_binary() {
ossl_wo_dev_info="${OSSL_VER%%-*}"
OSSL_VER_MINOR="${ossl_wo_dev_info#$OSSL_VER_MAJOR\.}"
OSSL_VER_MINOR="${OSSL_VER_MINOR%%[a-zA-Z]*}"
OSSL_VER_APPENDIX="${ossl_wo_dev_info#$OSSL_VER_MAJOR\.$OSSL_VER_MINOR}"
OSSL_VER_APPENDIX="${OSSL_VER#$OSSL_VER_MAJOR\.$OSSL_VER_MINOR}"
OSSL_VER_PLATFORM=$($OPENSSL version -p 2>/dev/null | sed 's/^platform: //')
OSSL_BUILD_DATE=$($OPENSSL version -a 2>/dev/null | grep '^built' | sed -e 's/built on//' -e 's/: ... //' -e 's/: //' -e 's/ UTC//' -e 's/ +0000//' -e 's/.000000000//')