File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -490,6 +490,13 @@ if [ ! -e ${OPENSSL_ARCHIVE_FILE_NAME} ]; then
490490 # -s be silent, -f return non-zero exit status on failure, -I get header (do not download)
491491 curl ${CURL_OPTIONS} -sfIL " ${OPENSSL_ARCHIVE_URL} " > /dev/null
492492
493+ # If unsuccessful, use the GitHub URL for newer versions and try again.
494+ if [ $? -ne 0 ]; then
495+ OPENSSL_ARCHIVE_URL=" https://github.com/openssl/openssl/releases/download/${OPENSSL_ARCHIVE_BASE_NAME} /${OPENSSL_ARCHIVE_FILE_NAME} "
496+
497+ curl ${CURL_OPTIONS} -sfIL " ${OPENSSL_ARCHIVE_URL} " > /dev/null
498+ fi
499+
493500 # If unsuccessful, update the URL for older versions and try again.
494501 if [ $? -ne 0 ]; then
495502 BRANCH=$( echo " ${VERSION} " | grep -Eo ' ^[0-9]\.[0-9]\.[0-9]' )
You can’t perform that action at this time.
0 commit comments