From 453e4319bd95d61c6698282605f4048be5f71fa5 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 28 Aug 2024 15:33:45 +0200 Subject: [PATCH] Fix myynh_install_python --- scripts/_common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index c0040fd..1b34b35 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -75,10 +75,10 @@ myynh_install_python() { if $(dpkg --compare-versions $py_built_version ge $python) then # Built >= Required - ynh_print_info --message="Using already python3 built version: $py_app_version" - py_app_version="/usr/local/bin/python${py_built_version%.*}" + ynh_print_info --message="Using already python3 built version: $py_app_version" + else # APT < Minimal & Actual < Minimal => Build & install Python into /usr/local/bin ynh_print_info --message="Building python3 : $python (may take a while)..."