From e7597405c3dfbfd894154d73b38fc2e8e40ccb1f Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 7 Jun 2021 17:49:24 +0800 Subject: [PATCH] do_cmake.sh: refactor code to set PYBUILD so it is more consistent with rhel/centos part. Signed-off-by: Kefu Chai --- do_cmake.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/do_cmake.sh b/do_cmake.sh index c85799aec277..25b8efd39592 100755 --- a/do_cmake.sh +++ b/do_cmake.sh @@ -19,11 +19,12 @@ if [ -r /etc/os-release ]; then source /etc/os-release case "$ID" in fedora) - PYBUILD="3.7" - if [ "$VERSION_ID" -eq "32" ] ; then - PYBUILD="3.8" - elif [ "$VERSION_ID" -ge "33" ] ; then - PYBUILD="3.9" + if [ "$VERSION_ID" -ge "33" ] ; then + PYBUILD="3.9" + elif [ "$VERSION_ID" -ge "32" ] ; then + PYBUILD="3.8" + else + PYBUILD="3.7" fi ;; rhel|centos) -- 2.47.3