1
0
Fork 0

containerctl: Fix python version check

Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
Enno Tensing 2025-08-11 17:39:09 +02:00
parent 2e793fd31f
commit d67137363f
Signed by: tenno
GPG key ID: 95265603BD36E66C

View file

@ -108,7 +108,7 @@ generate_container()
mypython="python3" mypython="python3"
pyver="$(/usr/bin/env "${mypython}" -c 'import sys; print(sys.version_info.minor)')" pyver="$(/usr/bin/env "${mypython}" -c 'import sys; print(sys.version_info.minor)')"
if [ "${pyver}" -gt "11" ] if [ "${pyver}" -lt "11" ]
then then
mypython="python3.11" mypython="python3.11"
fi fi