containerctl: Check if python3 is at least 3.11
Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
parent
e4051fe4e4
commit
62d56248df
1 changed files with 7 additions and 1 deletions
|
@ -106,7 +106,13 @@ generate_container()
|
|||
exit 1
|
||||
fi
|
||||
|
||||
/usr/bin/env python3 "${BASEDIR}/generate/generate.py" \
|
||||
mypython="python3"
|
||||
pyver="$(/usr/bin/env "${mypython}" -c 'import sys; print(sys.version_info.minor)')"
|
||||
if [ "${pyver}" -gt "11" ]
|
||||
then
|
||||
mypython="python3.11"
|
||||
fi
|
||||
/usr/bin/env "${mypython}" "${BASEDIR}/generate/generate.py" \
|
||||
"${CONFIGDIR}/${config}" "${LOG}" "${CONTAINERDIR}"
|
||||
|
||||
if [ "${?}" = 1 ]
|
||||
|
|
Loading…
Add table
Reference in a new issue