]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3731] Update meson.sh
authorAndrei Pavel <andrei@isc.org>
Wed, 12 Mar 2025 12:15:57 +0000 (14:15 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 13 Mar 2025 17:03:38 +0000 (18:03 +0100)
meson.sh

index 43efbdf69eaa3f67684ce48ac0e4ed480747072c..0b3521e279515119f8b538e7dd72a2fa9cbfe6fe 100755 (executable)
--- a/meson.sh
+++ b/meson.sh
@@ -28,7 +28,7 @@ if test ! -d venv; then
         if command -V compgen >/dev/null; then
             # shellcheck disable=SC3044
             # SC3044 (warning): In POSIX sh, 'compgen' is undefined.
-            newer=$(compgen -c python3 | sort -V | tail -n 1)
+            newer=$(compgen -c python3 | grep -E '^python3.[0-9]+$' | sort -V | tail -n 1)
             if test -n "${newer}"; then
                 python3="${newer}"
             fi