Skip to content

Commit 90a8fc5

Browse files
committed
refactor: 💡 openssl always use stable version
1 parent 24c6507 commit 90a8fc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ prepare_ssl() {
298298
echo "- libressl: ${libressl_ver}, source: ${libressl_latest_url:-cached libressl}" >>"${BUILD_INFO}"
299299
else
300300
# openssl
301-
openssl_filename="$(retry wget -qO- --compression=auto https://openssl-library.org/source/ \| grep -o "'>openssl-3.*tar.gz<'" \| grep -o "'[^>]*.tar.gz'" \| sort -nr \| head -1)"
301+
openssl_filename="$(retry wget -qO- --compression=auto https://openssl-library.org/source/ \| grep -o "'>openssl-3\(\.[0-9]*\)*tar.gz<'" \| grep -o "'[^>]*.tar.gz'" \| sort -nr \| head -1)"
302302
openssl_ver="$(echo "${openssl_filename}" | sed -r 's/openssl-(.+)\.tar\.gz/\1/')"
303303
openssl_latest_url="https://github.com/openssl/openssl/releases/download/openssl-${openssl_ver}/${openssl_filename}"
304304
if [ x"${USE_CHINA_MIRROR}" = x1 ]; then

0 commit comments

Comments
 (0)