From b3af373624cca7c77c8636daf9104191d29e1629 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Tue, 6 May 2025 18:52:38 +0300 Subject: [PATCH] fix --- plugins/python-build/bin/python-build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 027785cf..f4b059bf 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -2255,7 +2255,9 @@ if [ -z "$MAKE" ]; then if [ "$(echo $1 | sed 's/-.*$//')" = "jruby" ]; then export MAKE="gmake" else - if [ "$(sed 's/[^[:digit:]].*//')" -lt 10 ]<<<"${_PYTHON_BUILD_CACHE_UNAME_R:=$(uname -r)}"; then + # var assignment inside $() does not propagate due to being in subshell + _PYTHON_BUILD_CACHE_UNAME_R="${_PYTHON_BUILD_CACHE_UNAME_R:=$(uname -r)}" + if [ "$(echo "$_PYTHON_BUILD_CACHE_UNAME_R" | sed 's/[^[:digit:]].*//')" -lt 10 ]; then export MAKE="gmake" else export MAKE="make"