From 4e84fb804f59db04f4190f1cc56d0fb94034256f Mon Sep 17 00:00:00 2001 From: RequestPrivacy <72392544+RequestPrivacy@users.noreply.github.com> Date: Thu, 9 Sep 2021 13:55:36 +0000 Subject: [PATCH] Identify newest BlitzPy version during sd building (#2505) The -r (reverse) flag in the ls command leads to an install of the oldest, not the newest version of BlitzPy. --- build_sdcard.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_sdcard.sh b/build_sdcard.sh index 0eb683347..51c9ea35e 100755 --- a/build_sdcard.sh +++ b/build_sdcard.sh @@ -614,7 +614,7 @@ sudo -u admin chmod +x /home/admin/config.scripts/*.sh sudo -u admin chmod +x /home/admin/setup.scripts/*.sh # install newest version of BlitzPy -blitzpy_wheel=$(ls -trR /home/admin/raspiblitz/home.admin/BlitzPy/dist | grep -E "*any.whl" | tail -n 1) +blitzpy_wheel=$(ls -tR /home/admin/raspiblitz/home.admin/BlitzPy/dist | grep -E "*any.whl" | tail -n 1) blitzpy_version=$(echo ${blitzpy_wheel} | grep -oE "([0-9]\.[0-9]\.[0-9])") echo "" echo "*** INSTALLING BlitzPy Version: ${blitzpy_version} ***"