From 93c1d04912fcc9f075118f2ae029b783734fc826 Mon Sep 17 00:00:00 2001 From: th33xitus Date: Thu, 5 May 2022 10:17:08 +0200 Subject: [PATCH] fix(flash_klipper.sh): fix `menuconfig` call on python3 only systems Signed-off-by: Dominik Willner th33xitus@gmail.com --- scripts/flash_klipper.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/flash_klipper.sh b/scripts/flash_klipper.sh index be92d6a..6d61b0f 100644 --- a/scripts/flash_klipper.sh +++ b/scripts/flash_klipper.sh @@ -272,7 +272,9 @@ function build_fw(){ local dep=(build-essential dpkg-dev make) dependency_check "${dep[@]}" - make clean && make menuconfig + make clean + [ "${python_version}" == "3" ] && make PYTHON=python3 menuconfig + [ "${python_version}" == "2" ] && make menuconfig status_msg "Building firmware ..." python_version=$("${KLIPPY_ENV}"/bin/python --version 2>&1 | cut -d" " -f2 | cut -d"." -f1)