From 8d93ccae3939cccef5d78bf41ab90e9799e2eaaa Mon Sep 17 00:00:00 2001 From: threadflow <1308665+threadflow@users.noreply.github.com> Date: Sun, 2 Feb 2025 09:50:48 +0800 Subject: [PATCH] Fix OpenSSL version parsing in python-build script (#3181) --- plugins/python-build/bin/python-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index f39225f6..57635209 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1621,7 +1621,7 @@ build_package_mac_openssl() { openssl_version() { local -a ver IFS=- ver=( ${1:?} ) - IFS=. ver=( ${ver[0]} ) + IFS=. ver=( ${ver[1]} ) [[ ${ver[2]} =~ '^([[:digit:]]+)[[:alpha:]]$' ]] && ver[2]="${BASH_REMATCH[1]}" echo $(( ${ver[0]}*10000 + ${ver[1]}*100 + ${ver[2]} )) }